|
Here are a couple of ideas I can suggest:
- You can delete the second hidesprite command as one is enough,
- I see you're using hidesprite 0x10, if person event number is 10, then you should write the command like: "hidesprite 0xa" because you need to convert decimal numbers to hexadecimal, and this is probably the cause of the error,
- Carefully inspect that the flag and the person event numbers are correct, both in Advance Map and the script,
- Try using a different flag if you want, but seeing as the trainer disappears after getting back to the area this may indicate that the setflag worked,
- Check the level scripts of the map your NPC is located, some level scripts could interfere with appearing/disappearing.
|