#//But this kind of thing is why the difference between what is sakurascript and what is YAYA is important imo
Explore tagged Tumblr posts
zichqecs-hoard · 1 year ago
Text
What interrupts scripts is when a new SHIORI event is generated! SHIORI events are things that start with On, like OnMouseDoubleClick, OnBoot, or even user-made events like OnMainMenu, etc.
So if you use sakurascript’s raise tag, what you’re doing is starting a new event, and if it returns an output, that will interrupt the current script! You can use the embed tag instead, if you want to run an event and display the result in the current script.
Or, you can use YAYA’s embedded elements in order to run an event and display the result in the current script. Those sound similar, but there’s actually pretty big differences between them. Most notably, YAYA’s embedded elements will run every time the function they are in is run, even if the script they’re a part of is not chosen (do not put variable changes into %(these)! Especially if you’re wanting to change variables in randomtalk! It will cause you pain and suffering. Been there, done that 😂). Sakurascript tags like raise and embed, on the other hand, will only run when the script they are in is run, and in particular won’t even run until the ghost reaches that part of the script.
And of course, the other difference is that in YAYA you’re running these as functions, whereas with sakurascript tags you are only able to raise events. That means that with sakurascript tags like raise and embed, you have to start the names with On!
(Ok, for some things like choice tags you don’t have to start the event names with On, but that’s a technicality for another time. There are special events that handle these and that’s what generates Select.options, I will explain further to anyone that wants to know if desired.)
Anyways hope you don’t mind me talking about this stuff a little 😂 I love to make these things. Good luck with your ghost, it’s looking neat!!
Tumblr media Tumblr media
I think I can with certainty say I'm past the halfway point with this. there's not that much random dialogue left to make up
I can only hope the switch works as intended on other computers, since a different timing left them mid-transition. it seems like it doesn't interrupt the bubbles switch but it's only if the menu switch/shell reset comes at a specific point before it 🤔
sakurascript is really weird with calling functions, but I Think if you call it as a variable ( %(function) ) it doesn't interrupt the script?? maybe??
[Image ID:
Two gifs showing off Vega complaining about the messiness of Windows' system32 folder, providing the user with a link to open it and see for themselves, and the right click context menu changing its color scheme alongside Vega switching to Rigel.
End ID]
151 notes · View notes