EDIT: This is solved. Under my original question is the solution for those who were wondering the same thing.
Hello, I am trying to create an effect where an event plays after a variable is changed, which happens when a message is fully read out (for example, a visual novel bust speaking throughout the message but starts blinking when the message is read out). Is there a way to call a function that checks where the game has fully read the message or not?
EDIT (Solution):
MAKE SURE YOU HAVE VISUSTELLA CORE ENGINE TO MAKE THIS WORK! (its free from their sample project)
[ISPOILER]
In the console, we can see that
returns false during the function isEndofText if the message is being read out. Otherwise, textState becomes null as the value is no longer needed when the message is finished. So we can check for that.
Here we have a sample autorun event with a long message that has a variable set to 0 and turns on a test switch.
As a common event, we have a test effect that is parallel and runs always when the test switch is ON. We make a script conditional where textState is checked to equal null. Once it equals null then the variable is set to 1 and the common event ends by setting test switch to OFF.
Just run the test switch every time you want the effect to happen and add any effects to the common event.
[/ISPOILER]
Hello, I am trying to create an effect where an event plays after a variable is changed, which happens when a message is fully read out (for example, a visual novel bust speaking throughout the message but starts blinking when the message is read out). Is there a way to call a function that checks where the game has fully read the message or not?
EDIT (Solution):
MAKE SURE YOU HAVE VISUSTELLA CORE ENGINE TO MAKE THIS WORK! (its free from their sample project)
[ISPOILER]
In the console, we can see that
JavaScript:
$scene._messageWindow._textState
Here we have a sample autorun event with a long message that has a variable set to 0 and turns on a test switch.
As a common event, we have a test effect that is parallel and runs always when the test switch is ON. We make a script conditional where textState is checked to equal null. Once it equals null then the variable is set to 1 and the common event ends by setting test switch to OFF.
Just run the test switch every time you want the effect to happen and add any effects to the common event.
[/ISPOILER]