hello! i was wondering how to properly remove kero when using a template with 2 ghosts when i only want sakura. im still getting requests for surface10 but im not sure where?
The best way to do it is to set the kero's surface to \s[-1] and make sure it stays that way! You'll want to make sure you do this in OnFirstBoot, OnBoot, OnSurfaceRestore, and OnWindowStateRestore at the very least.
If you're having surface 10 called and you're not sure where it's coming from, there are a couple ways you can hunt this down. If you use a text editor such as Notepad++, you may find it helpful to perform a "find in files" search for \s[10] and see what turns up. This guide has some notes on how to do that within your ghost folder. (Or you can simply use a basic Ctrl F search in each file one at a time!)
As a note, if you're writing a ghost in YAYA, I would recommend not touching the code in the base SHIORI files. There are a couple calls to surface 10 in there, but so long as you have responses to the events I mentioned at the start, these will not cause you any issue and you can ignore them.
Another thing you can try is to open the script log with Ctrl L, and use that whenever you see the kero appear to see which script has the tag and what event it originates from.
(OnSecondChange in this screenshot is what causes aitalk to run, and the same will be true for many ghosts.)
This can help you get an idea of where scripts are coming from, and locate any that are causing problems! If you can't read the full script in the script log window because it's too long, you can click to highlight the one you want to check, click the copy button, then paste it into a text editor and use Ctrl F to check for surface tags, etc.
In 99% of cases, you should be able to find and replace all of the calls to surface 10 with these methods! But if you've still got some that you can't find, feel free to send in another ask with more details (a screenshot of the script log with the script that caused the kero to appear would help a lot).










