How can I change the properties of a variable through another script?

Hello. I want to change the value of a variable inside of a script in the script window, using the scripts in the events page (using a different script to change the properties of a variable).
1725715673723.png

I want to set the variable to false using another script. How can I do that?
This looks like Dubealex's Advance Message System. You should be fine with just doing this in a Script call via an event:
Code:
::LETTER_BY_LETTER_MODE =
false
Note that there's an unintended engine behavior if you don't put false on its own line. Otherwise you'll need to use a script like this one

Outside of events, you should be fine just doing
Code:
::LETTER_BY_LETTER_MODE = false
This looks like Dubealex's Advance Message System. You should be fine with just doing this in a Script call via an event:
Code:
::LETTER_BY_LETTER_MODE =
false
Note that there's an unintended engine behavior if you don't put false on its own line. Otherwise you'll need to use a script like this one

Outside of events, you should be fine just doing
Code:
::LETTER_BY_LETTER_MODE = false
Thank you for your response! However, do you know how to reference these too, by any chance?
1725727740563.png
In the script's instructions
Customize other aspects of the AMS:

In the first lines of the AMS, you can customize things.

Those lines help you configure the default you will use in the AMS; so you can now specify the font name and size for both message box and name box independatly, and set their windowskin; which will not affect any other windows as the menus.

You can also set the position and size of the name box, just play with the values and test it. The default are written in the comments aside each line so you cannot "mess" the script up.

I also created an object named $ams that hold all those values for you, and it saves them in your save files, and load them when you load a game. This means that if you changed the font in the middle of your game, save the game, and reload the game, the font will still be the one you specified in the middle of your game -- This would not have worked in any other message script.

You can also access those settings to read or write to them in your game using the ATTR_ACCESSOR I created.
The script has all these variables made accessible:
Code:
class AMS
  
  attr_accessor :name_box_x_offset
  attr_accessor :name_box_y_offset
  attr_accessor :font_type
  attr_accessor :name_font_type
  attr_accessor :font_size
  attr_accessor :name_font_size
  attr_accessor :message_box_opacity
  attr_accessor :name_box_skin
  attr_accessor :name_box_text_color
  attr_accessor :message_box_text_color
  attr_accessor :message_box_skin
  attr_accessor :name_box_width
  attr_accessor :name_box_height
  attr_accessor :message_width
  attr_accessor :message_height
  attr_accessor :message_x
  attr_accessor :message_y_bottom
  attr_accessor :message_y_middle
  attr_accessor :message_y_top
  attr_accessor :event_message_x_ofset
  attr_accessor :event_message_y_ofset

So you would just do something like this
Code:
$ams.name_box_x_offset = 10
In the script's instructions

The script has all these variables made accessible:
Code:
class AMS
 
  attr_accessor :name_box_x_offset
  attr_accessor :name_box_y_offset
  attr_accessor :font_type
  attr_accessor :name_font_type
  attr_accessor :font_size
  attr_accessor :name_font_size
  attr_accessor :message_box_opacity
  attr_accessor :name_box_skin
  attr_accessor :name_box_text_color
  attr_accessor :message_box_text_color
  attr_accessor :message_box_skin
  attr_accessor :name_box_width
  attr_accessor :name_box_height
  attr_accessor :message_width
  attr_accessor :message_height
  attr_accessor :message_x
  attr_accessor :message_y_bottom
  attr_accessor :message_y_middle
  attr_accessor :message_y_top
  attr_accessor :event_message_x_ofset
  attr_accessor :event_message_y_ofset

So you would just do something like this
Code:
$ams.name_box_x_offset = 10
Thanks!

Original thread: https://forums.rpgmakerweb.com/threads/how-can-i-change-the-properties-of-a-variable-through-another-script.171737/