Can we write a script inside show text box?

rechronicle

Mystvaldia
Veteran
Joined
Oct 30, 2013
Messages
137
Reaction score
109
First Language
Bahasa
Primarily Uses
RMMV
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!
 
Last edited:

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
Why not just make the scriptcall before the textbox?
 

rechronicle

Mystvaldia
Veteran
Joined
Oct 30, 2013
Messages
137
Reaction score
109
First Language
Bahasa
Primarily Uses
RMMV
@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.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
Not without a script of plugin specifically written to allow that.

By default Text display is display only, no eval included there.
 

waynee95

Inactive
Veteran
Joined
Jul 2, 2016
Messages
682
Reaction score
598
First Language
German
Primarily Uses
RMMV
You could use a plugin I did several months ago. https://www.dropbox.com/s/9yq7mspafsvfqsy/WAY_EvalText.js?dl=0
Code:
${var v=$gameVariables;v.setValue(1,v.value(1)+1)}\v[1]
This would increase variable with id 1 by 1 each time the textbox is opened.

Don't be confused by that code. This is just a short version of
Code:
${$gameVariables.setValue(1, $gameVariables.value(1) + 1)}\v[1]
 
Last edited:

rechronicle

Mystvaldia
Veteran
Joined
Oct 30, 2013
Messages
137
Reaction score
109
First Language
Bahasa
Primarily Uses
RMMV
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top