MV Manipulating the game through scripted messages?

Good day. Recently, I stumbled upon this very interesting thread about scripting in messages and choices:

I was wondering if it's possible to do more in the scripted messages in the base RPG Maker MV, such as manipulating switches and variables and executing other script calls specifically inside $gameMessage.add(""); and in the middle of a sentence.

1748192900503.png


I tried to do it myself but couldn't.

If not, is there any non-base answer to this question?

I'm using:
RPG Maker MV 1.6.2
There is a plugin Hakuen Studio Message Actions in their MV museum bundle that lets you run javascript from the message box.

There is a plugin Hakuen Studio Message Actions in their MV museum bundle that lets you run javascript from the message box.

Thank you for a quick reply! I've tested the plugin you suggested, and it seems to work excellently! I even tested it with a bunch of other message-related plugins (like Yanfly's), and so far, there's no issue there either. Though, it is sad that it's impossible to implement script calls from other plugins.
what kind of scriptcalls do you mean on it?
as I have some switches to show "true/false" for its state
and can run some JS evals.

but it depends what scriptcalls you want to run as scene scriptcalls
dosn't work.

there is also another plugin to run script inside a message that is different
from JS eval which might work. which can be [found here].
what kind of scriptcalls do you mean on it?
as I have some switches to show "true/false" for its state
and can run some JS evals.

but it depends what scriptcalls you want to run as scene scriptcalls
dosn't work.

there is also another plugin to run script inside a message that is different
from JS eval which might work. which can be [found here].

The things I'm particularly interested in right now are turning on / off a switch, changing the value of a variable and maybe doing image manipulation at any point in the text by doing it in the message.

I'm also interested in executing scriptcalls from plugins (like "Input.isEnabled = true / false;" from a plugin made by Aerosys). Though, this one is the only one I'm interested in right now.

The plugin you attached looks interesting! I will test it in a few hours as I had to leave my computer.

EDIT: It works great! I actually prefer this one more since it's one simple plugin and seemingly allows for more things to be executed with that <script> tag. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/manipulating-the-game-through-scripted-messages.177913/