Hello,
I want to change a variable value inside "show text" box. Is there a way to do it?
\V[n] will show the value, but no ways to change it.
My aim is to make parallel event activated by changing the variable value to a certain number.
Basically, a script call inside text box I guess. (Able to change switch, etc)
Thank you!
Can we write a script inside show text box?
● ARCHIVED · READ-ONLY
-
-
Why not just make the scriptcall before the textbox?
-
@waynee95
I was thinking the possibilities to collaborate this method with SRD_AutoNameBox plugin, using the variable change for
each actor to show unique bust.
It also helps reduce stress on very long dialogue game. (Not having to change the value manually each time.)
lol, not so sure tho if it will work or not. -
Not without a script of plugin specifically written to allow that.
By default Text display is display only, no eval included there. -
You could use a plugin I did several months ago. https://www.dropbox.com/s/9yq7mspafsvfqsy/WAY_EvalText.js?dl=0
Code:This would increase variable with id 1 by 1 each time the textbox is opened.${var v=$gameVariables;v.setValue(1,v.value(1)+1)}\v[1]
Don't be confused by that code. This is just a short version of
Code:${$gameVariables.setValue(1, $gameVariables.value(1) + 1)}\v[1] -
Whoa thank you!
Just when I want to search for a plugin to do the trick, I will try it this weekend and see how it goes. Cheers.