Support names and disable parallax motion

Hello, i’m using a Soulpour777 script to log messages, past messages will now be visible in a separate window on the E button (you can configure your own button in the script itself), the problem is that i want the parallax not to move at all, but to be static, and also to add support to the modern algebra script for the names of the characters so that they are shown along with the text (I need the script to take the text after the \nb command and write a line on top behind the text). I also encountered a problem that custom commands such as \ani[3] are not hidden completely, but are shown cropped, i need these commands not to be visible at all.
1701809256773.png


Spoiler: MESSAGE LOG BY SOULPOUR777
Code:
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Animated Message Log VXA
# Author: Soulpour777
# Credits / Original: Sui
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Description: Creates a message log of all present messages. They are stored
# and can be viewed anytime. Messages from Events, Battles, and Choices are
# shown through the press of a button.
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Controls:
# Press Up and Down to Scroll Messages.
# Press Assigned Button to Open the Message Log
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Changes:
# I added two accessors for the game system for the row and choices for two
# different reasons, that being:
# - if the developer wants to change the max row anytime they like (in map).
# - if they want to save choices or no through the progress of the game.
# ----------------------------------------------------------------------------
# Add Ons and Features:
# - Message Log
# - Animated Background
# - Controlled Choice Saving
# - Controlled Max Rows for Message Log
# - Battle Log
# ----------------------------------------------------------------------------
# Script Calls:
#
# $game_system.change_choice_saving(false) - will not save choices.
# $game_system.change_choice_saving(true) - will save choices
#
# $game_system.change_message_rows(value)
# Place the value on the argument for the new max rows: for example:
#
# $game_system.change_message_rows(50)
# This will give me maximum of 50 rows. Note that the excess logs will be
# deleted to store the new ones.
# ----------------------------------------------------------------------------

#==============================================================================
# ** Soulpour777 [Animated Log]
#------------------------------------------------------------------------------
#  This module carries the name of the scripter as well as the three important
# things for the whole script's functions, the switch, the button and the
# parallax background.
#==============================================================================
module Soulpour777
  module Animated_Log
    # Message Log Switch ID
    Message_Log_Switch = 11
    
    # Display MessageLog Button Key
    Message_Log_Button_Mode = Input::Y # Button E on your Keyboard
    
    Parallax_Name = "Background"
    
  end
end

# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Window Message
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Process All Text
  #--------------------------------------------------------------------------
  alias soul_process_all_text process_all_text
  def process_all_text
    log = convert_escape_characters($game_message.all_text)
    Soulpour777::Animated_Log.push(log)
    soul_process_all_text
  end
end

#==============================================================================
# ** Game_System
#------------------------------------------------------------------------------
#  This class handles system data. It saves the disable state of saving and
# menus. Instances of this class are referenced by $game_system.
#==============================================================================

class Game_System
  # ----------------------------------------------------------------------
  # Initializes an attribute accessor so players can access max rows
  # and choice saving anytime.
  # ----------------------------------------------------------------------
  attr_accessor :save_choices
  attr_accessor :max_rows_for_message
  # ----------------------------------------------------------------------
 
  # ----------------------------------------------------------------------
  # Alias Listings
  # ----------------------------------------------------------------------
  alias choice_initialize initialize
  # ----------------------------------------------------------------------
 
  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  # Initialize (aliased)
  # This stores both choices and max rows that enables the developer to
  # change it everytime he / she wants to.
  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  def initialize
    choice_initialize() # Call Original Method
    @save_choices = true
    @max_rows_for_message = 50
  end
 
  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  # Choice Saving
  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  def change_choice_saving(choice_save)
    @save_choices = choice_save
  end
 
  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  # Message Rows
  # -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  def change_message_rows(new_rows)
    @max_rows_for_message = new_rows
  end
 
 
end

#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================
class Window_ChoiceList < Window_Command
  #--------------------------------------------------------------------------
  # * Create Command List
  #--------------------------------------------------------------------------
  alias soul_mcl make_command_list
  def make_command_list
    soul_mcl
    return unless $game_system.save_choices
    log = ""
    $game_message.choices.each do |choice|
      next if choice.empty?
      log += "  " + choice + "\n"
    end
    return if log.empty?
    Soulpour777::Animated_Log.push(log)
  end
end


module Soulpour777::Animated_Log
  Animated_Log = []
  #--------------------------------------------------------------------------
  # Push Text (Add)
  #--------------------------------------------------------------------------
  def self.push(text)
    Animated_Log.push(text)
    Animated_Log.shift if Animated_Log.size > $game_system.max_rows_for_message
  end
end

#==============================================================================
# ** Window_MessageLog
#------------------------------------------------------------------------------
#  This message window is used to display the messages. [Window_Base]
#==============================================================================

class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # Initialize
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, Graphics.width, Graphics.height)
    self.z = 250
    self.opacity = 0
    self.active = false
    self.openness = 0
    self.padding *= 2
    @index = 0
    create_animated_bg
    open
    refresh
  end
 
  #--------------------------------------------------------------------------
  # Dispose
  #--------------------------------------------------------------------------
  def dispose
    super
    @back.bitmap.dispose
    @back.dispose
  end

  #--------------------------------------------------------------------------
  # Update Parallax
  #-------------------------------------------------------------------------- 
  def update_anime
    @back.ox += 2
  end
 
  #--------------------------------------------------------------------------
  # Update
  #--------------------------------------------------------------------------
  def update
    super
    update_anime
    return if @opening || @closing
    dispose if close?
    if !self.disposed? && self.open?
      if Input::trigger?(:B)
        Sound.play_ok
        close
      elsif Input::trigger?(:Y)
        Sound.play_ok
        close
      elsif Input::repeat?(:UP)
        self.index = @index - 1
      elsif Input::repeat?(:DOWN)
        self.index = @index + 1
      elsif Input::repeat?(:LEFT)
        self.index = @index - 5
      elsif Input::repeat?(:RIGHT)
        self.index = @index + 5
      elsif Input::repeat?(:L)
        self.index = @index - 15
      elsif Input::repeat?(:R)
        self.index = @index + 15
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # Row Max
  #--------------------------------------------------------------------------
  def page_row_max
    contents_height / line_height
  end
 
  #--------------------------------------------------------------------------
  # Index
  #--------------------------------------------------------------------------
  def index=(row)
    @index = [[row, @row_max - page_row_max + 1].min, 0].max
    self.oy = @index * line_height
  end
 
  #--------------------------------------------------------------------------
  # Create Parallax
  #--------------------------------------------------------------------------
  def create_animated_bg
    @back = Plane.new
    @back.ox = 0
    @back.oy = 0
    @back.z = self.z - 1
    @back.bitmap = Cache.system(Soulpour777::Animated_Log::Parallax_Name)
  end
 
  #--------------------------------------------------------------------------
  # Push Text
  #--------------------------------------------------------------------------
  def push(text)
    Soulpour777::Animated_Log::Animated_Log.push(text)
    Soulpour777::Animated_Log::Animated_Log.shift if Soulpour777::Animated_Log::Animated_Log.size > $game_system.max_rows_for_message
  end
 
  #--------------------------------------------------------------------------
  # Create Log Contents
  #--------------------------------------------------------------------------
  def create_log_contents(size)
    self.contents.dispose
    self.contents = Bitmap.new(width - padding * 2, [height - padding * 2, size * line_height].max)
  end
 
  #--------------------------------------------------------------------------
  # ? Convert Special Characters
  #--------------------------------------------------------------------------
  def convert_special_characters(text)
    text.gsub!(/\e.\[.+\]/)        { "" }
    text.gsub!(/\e./)              { "" }
    text
  end
 
  #--------------------------------------------------------------------------
  # Refresh
  #--------------------------------------------------------------------------
  def refresh
    y = 0
    texts = []
    for i in 0...Soulpour777::Animated_Log::Animated_Log.size
      texts.push("") if i > 0
      texts.concat(Soulpour777::Animated_Log::Animated_Log[i].split("\n"))
    end
    create_log_contents(texts.size)
    for i in 0...texts.size
      text = convert_special_characters(texts[i])
      self.contents.draw_text(0, y, self.width - padding * 2, line_height, text)
      y += line_height
    end
    @row_max = texts.size
    self.index = texts.size
  end
end

#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
#  This class performs the map screen processing.
#==============================================================================
class Scene_Map < Scene_Base
  #--------------------------------------------------------------------------
  # Update
  #--------------------------------------------------------------------------
  alias animated_message_log_upd update
  def update
    if @window_log
      update_message_log
    elsif Input.trigger?(Soulpour777::Animated_Log::Message_Log_Button_Mode)
      @window_log = Window_MessageLog.new
      update_message_log
    else
      animated_message_log_upd
    end
  end
  #--------------------------------------------------------------------------
  # Update Message Log
  #--------------------------------------------------------------------------
  def update_message_log
    Graphics.update
    Input.update
    @window_log.update
    @window_log = nil if @window_log.disposed?
  end
end

#==============================================================================
# ** Scene_Battle
#------------------------------------------------------------------------------
#  This class performs battle screen processing.
#==============================================================================
class Scene_Battle < Scene_Base
  #--------------------------------------------------------------------------
  # Update
  #--------------------------------------------------------------------------
  alias animated_message_log_upd update
  def update
    if @window_log
      update_message_log
    elsif Input.trigger?(Soulpour777::Animated_Log::Message_Log_Button_Mode)
      @window_log = Window_MessageLog.new
      update_message_log
    else
      animated_message_log_upd
    end
  end
  #--------------------------------------------------------------------------
  # Update Message Log
  #--------------------------------------------------------------------------
  def update_message_log
    Graphics.update
    Input.update
    @window_log.update
    @window_log = nil if @window_log.disposed?
  end
end
Just for simplicity's sake, could you post some screenshots of how it looks like right now and what do you expect to see on screen?
That would make our job of assisting you a heck lot easier than working on it only depending on a strange description.
Just for simplicity's sake, could you post some screenshots of how it looks like right now and what do you expect to see on screen?
That would make our job of assisting you a heck lot easier than working on it only depending on a strange description.
I apologize, i forgot that i found this script by accident, since the original was deleted, so i will now show the only screenshot of the author.
animated-message-log.jpg

This is what the screenshot looks like, i want the character names to be written exactly the same based on the text written in \nb[name], and also so that the parallax does not move at all, by default it moves to the right side in a loop.
Bump.
Once again providing minimal information and having us to ask questions creating a back and forth process to figure out the issue.

My initial test on this was unsuccessful because I tried to do what you showed.
ni[6] does not give a [Silent Hill] output. Also ni is not a code used in any script you mentioned.

Changing the text to what ATS Message Options says and I get the name box to show up but the log doesn't capture this part as it is removed when the rest of the text is processed.

Working on that, I have some success so far. Still working on it.
1702056023607.png

1702056049295.png


This is assuming that you want all the names to show up with the [] characters.
Once again providing minimal information and having us to ask questions creating a back and forth process to figure out the issue.

My initial test on this was unsuccessful because I tried to do what you showed.
ni[6] does not give a [Silent Hill] output. Also ni is not a code used in any script you mentioned.

Changing the text to what ATS Message Options says and I get the name box to show up but the log doesn't capture this part as it is removed when the rest of the text is processed.

Working on that, I have some success so far. Still working on it.
View attachment 287057
View attachment 287058

This is assuming that you want all the names to show up with the [] characters.
Sorry, i always fail to explain all the information correctly and in detail because of the translator, yes, i want all names to be shown as [], because they don’t show up for me at all. I apologize for misunderstanding, text code "ni[6]" really doesn’t exist, i showed with a screenshot that the text code like "\ani[6]" or "\ani[3]" is shown incorrectly, like "ni[6]" or "ni[3]", i need the code to not be displayed at all instead, because random "ni" looks strange in the text. I saw a fragment in a script that does this for system text codes, i need the same thing to work for the \ani code.
in detail because of the translator,
You've said that before. I don't believe this is true.
You simply have not even said that you are using Tuckie Wiggly text script where the \ani[6] is from.

So this is something you've added onto your project and are having issues. You need to give the full details on what you have and what you are doing and what the screen looks like with what you have the event configure like as if this was the first time you posted about your project. If not you have to give a lot of context by maybe linking back to previous threads.

Two parts for what I hope are the scripts you have in your project.

Put this below Yanfly Ace Mesage System
Spoiler: Yanfly Message patch for Soulpour message log
Ruby:
class Window_Base < Window
  #--------------------------------------------------------------------------
  # new method: convert_ace_message_system_new_escape_characters
  #--------------------------------------------------------------------------
  def convert_ace_message_system_new_escape_characters(result)
    #---
    result.gsub!(/\eFR/i) { "\eAMSF[0]" }
    result.gsub!(/\eFB/i) { "\eAMSF[1]" }
    result.gsub!(/\eFI/i) { "\eAMSF[2]" }
    result.gsub!(/\eFO/i) { "\eAMSF[3]" }
    result.gsub!(/\eFS/i) { "\eAMSF[4]" }
    #---
    result.gsub!(/\eAC\[([-+]?\d+)\]/i) { escape_actor_class_name($1.to_i) }
    result.gsub!(/\eAS\[([-+]?\d+)\]/i) { escape_actor_subclass_name($1.to_i) }
    result.gsub!(/\eAN\[([-+]?\d+)\]/i) { escape_actor_nickname($1.to_i) }
    result.gsub!(/\eANI\[([-+]?\d+)\]/i){ "\eANI[#{$1}]" }
    #---
    result.gsub!(/\eNC\[(\d+)\]/i) { $data_classes[$1.to_i].name }
    result.gsub!(/\eNI\[(\d+)\]/i) { $data_items[$1.to_i].name }
    result.gsub!(/\eNW\[(\d+)\]/i) { $data_weapons[$1.to_i].name }
    result.gsub!(/\eNA\[(\d+)\]/i) { $data_armors[$1.to_i].name }
    result.gsub!(/\eNS\[(\d+)\]/i) { $data_skills[$1.to_i].name }
    result.gsub!(/\eNT\[(\d+)\]/i) { $data_states[$1.to_i].name }
    #---
    result.gsub!(/\eIC\[(\d+)\]/i) { escape_icon_item($1.to_i, :class) }
    result.gsub!(/\eII\[(\d+)\]/i) { escape_icon_item($1.to_i, :item) }
    result.gsub!(/\eIW\[(\d+)\]/i) { escape_icon_item($1.to_i, :weapon) }
    result.gsub!(/\eIA\[(\d+)\]/i) { escape_icon_item($1.to_i, :armour) }
    result.gsub!(/\eIS\[(\d+)\]/i) { escape_icon_item($1.to_i, :skill) }
    result.gsub!(/\eIT\[(\d+)\]/i) { escape_icon_item($1.to_i, :state) }
    #---
    return result
  end
 
end

Then put this below all the scripts for messages
Spoiler: ATS Message Options patch for soulpour message log
Ruby:
module R2_Text_Log_Symbol
  # symbol used to tell it to not add a new line
  # so if the actors name is shown as [Fred]
  # then it will not add a new line
  # but if it is shown as [Harry
  # then a new line will be added.
  # this just prevents the text from getting seperated from the actor name
  CHAR = "]"
end

class Window_ATS_Name < Window_Base
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Set Text
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def set_text(text)
    if Soulpour777::Animated_Log::Animated_Log[-1] != nil
      Soulpour777::Animated_Log::Animated_Log.insert(-2,"[#{text}]") unless (text == @text) || (text == "")    elsif Soulpour777::Animated_Log::Animated_Log == []
      Soulpour777::Animated_Log::Animated_Log.push("")
    else
      Soulpour777::Animated_Log::Animated_Log[0].insert(0,"[#{text}]") unless (text == @text) || (text == "")
    end
    if text.is_a?(String) && (@text != text || $game_message.name_win_min_width > contents.width)
      @text = text
      resize(*calc_window_size_by_text(text)) unless text.empty?
      update_placement
      refresh
    end
  end
end

class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Process All Text
  #--------------------------------------------------------------------------
  def process_all_text
    log = convert_escape_characters($game_message.all_text)
    log = clean_ace_message_system_new_escape_characters(log)
    Soulpour777::Animated_Log.push(log)
    soul_process_all_text
  end
  def clean_ace_message_system_new_escape_characters(result)
    #---
    result.gsub!("\eAMSF[0]") {""}
    result.gsub!("\eAMSF[1]") {""}
    result.gsub!("\eAMSF[2]") {""}
    result.gsub!("\eAMSF[3]") {""}
    result.gsub!("\eAMSF[4]") {""}
    #---
    result.gsub!(/\eAC\[([-+]?\d+)\]/i) {""}
    result.gsub!(/\eAS\[([-+]?\d+)\]/i) {""}
    result.gsub!(/\eAN\[([-+]?\d+)\]/i) {""}
    #---
    result.gsub!(/\eNC\[(\d+)\]/i) {""}
    result.gsub!(/\eNI\[(\d+)\]/i) {""}
    result.gsub!(/\eNW\[(\d+)\]/i) {""}
    result.gsub!(/\eNA\[(\d+)\]/i) {""}
    result.gsub!(/\eNS\[(\d+)\]/i) {""}
    result.gsub!(/\eNT\[(\d+)\]/i) {""}
    #---
    result.gsub!(/\eIC\[(\d+)\]/i) {""}
    result.gsub!(/\eII\[(\d+)\]/i) {""}
    result.gsub!(/\eIW\[(\d+)\]/i) {""}
    result.gsub!(/\eIA\[(\d+)\]/i) {""}
    result.gsub!(/\eIS\[(\d+)\]/i) {""}
    result.gsub!(/\eIT\[(\d+)\]/i) {""}
    #---
    result.gsub!(/\eANI\[(\d+)\]/i) {""}
    result.gsub!(/\eOFF\[(\d+)\]/i) {""}
    result.gsub!(/\eWAV\[(\d+)\]/i) {""}
    result.gsub!(/\eSHK\[(\d+)\]/i) {""}
    result.gsub!(/\eRAN\[(\d+)\]/i) {""}
    result.gsub!(/\eBLN\[(\d+)\]/i) {""}
    result.gsub!(/\eMOJ\[(\d+)\]/i) {""}
    result.gsub!(/\eNAM\[(\d+)\]/i) {""}
    result.gsub!(/\eLIN\[(\d+)\]/i) {""}
    #---
    return result
  end
end

class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # Update
  #--------------------------------------------------------------------------
  def update
    super
    return if @opening || @closing
    dispose if close?
    if !self.disposed? && self.open?
      if Input::trigger?(:B)
        Sound.play_ok
        close
      elsif Input::trigger?(:Y)
        Sound.play_ok
        close
      elsif Input::repeat?(:UP)
        self.index = @index - 1
      elsif Input::repeat?(:DOWN)
        self.index = @index + 1
      elsif Input::repeat?(:LEFT)
        self.index = @index - 5
      elsif Input::repeat?(:RIGHT)
        self.index = @index + 5
      elsif Input::repeat?(:L)
        self.index = @index - 15
      elsif Input::repeat?(:R)
        self.index = @index + 15
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # Refresh
  #--------------------------------------------------------------------------
  def refresh
    y = 0
    texts = []
    for i in 0...Soulpour777::Animated_Log::Animated_Log.size
      texts.push("") if i > 0
      texts.concat(Soulpour777::Animated_Log::Animated_Log[i].split("\n"))
    end
    create_log_contents(texts.size)
    for i in 0...texts.size
      text = convert_special_characters(texts[i])
      self.contents.draw_text(0, y, self.width - padding * 2, line_height, text)
      y += line_height unless text.include?("#{R2_Text_Log_Symbol::CHAR}")
    end
    @row_max = texts.size
    self.index = texts.size
  end
end
You've said that before. I don't believe this is true.
You simply have not even said that you are using Tuckie Wiggly text script where the \ani[6] is from.

So this is something you've added onto your project and are having issues. You need to give the full details on what you have and what you are doing and what the screen looks like with what you have the event configure like as if this was the first time you posted about your project. If not you have to give a lot of context by maybe linking back to previous threads.

Two parts for what I hope are the scripts you have in your project.

Put this below Yanfly Ace Mesage System
Spoiler: Yanfly Message patch for Soulpour message log
Ruby:
class Window_Base < Window
  #--------------------------------------------------------------------------
  # new method: convert_ace_message_system_new_escape_characters
  #--------------------------------------------------------------------------
  def convert_ace_message_system_new_escape_characters(result)
    #---
    result.gsub!(/\eFR/i) { "\eAMSF[0]" }
    result.gsub!(/\eFB/i) { "\eAMSF[1]" }
    result.gsub!(/\eFI/i) { "\eAMSF[2]" }
    result.gsub!(/\eFO/i) { "\eAMSF[3]" }
    result.gsub!(/\eFS/i) { "\eAMSF[4]" }
    #---
    result.gsub!(/\eAC\[([-+]?\d+)\]/i) { escape_actor_class_name($1.to_i) }
    result.gsub!(/\eAS\[([-+]?\d+)\]/i) { escape_actor_subclass_name($1.to_i) }
    result.gsub!(/\eAN\[([-+]?\d+)\]/i) { escape_actor_nickname($1.to_i) }
    result.gsub!(/\eANI\[([-+]?\d+)\]/i){ "\eANI[#{$1}]" }
    #---
    result.gsub!(/\eNC\[(\d+)\]/i) { $data_classes[$1.to_i].name }
    result.gsub!(/\eNI\[(\d+)\]/i) { $data_items[$1.to_i].name }
    result.gsub!(/\eNW\[(\d+)\]/i) { $data_weapons[$1.to_i].name }
    result.gsub!(/\eNA\[(\d+)\]/i) { $data_armors[$1.to_i].name }
    result.gsub!(/\eNS\[(\d+)\]/i) { $data_skills[$1.to_i].name }
    result.gsub!(/\eNT\[(\d+)\]/i) { $data_states[$1.to_i].name }
    #---
    result.gsub!(/\eIC\[(\d+)\]/i) { escape_icon_item($1.to_i, :class) }
    result.gsub!(/\eII\[(\d+)\]/i) { escape_icon_item($1.to_i, :item) }
    result.gsub!(/\eIW\[(\d+)\]/i) { escape_icon_item($1.to_i, :weapon) }
    result.gsub!(/\eIA\[(\d+)\]/i) { escape_icon_item($1.to_i, :armour) }
    result.gsub!(/\eIS\[(\d+)\]/i) { escape_icon_item($1.to_i, :skill) }
    result.gsub!(/\eIT\[(\d+)\]/i) { escape_icon_item($1.to_i, :state) }
    #---
    return result
  end
 
end

Then put this below all the scripts for messages
Spoiler: ATS Message Options patch for soulpour message log
Ruby:
module R2_Text_Log_Symbol
  # symbol used to tell it to not add a new line
  # so if the actors name is shown as [Fred]
  # then it will not add a new line
  # but if it is shown as [Harry
  # then a new line will be added.
  # this just prevents the text from getting seperated from the actor name
  CHAR = "]"
end

class Window_ATS_Name < Window_Base
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Set Text
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def set_text(text)
    if Soulpour777::Animated_Log::Animated_Log[-1] != nil
      Soulpour777::Animated_Log::Animated_Log.insert(-2,"[#{text}]") unless (text == @text) || (text == "")    elsif Soulpour777::Animated_Log::Animated_Log == []
      Soulpour777::Animated_Log::Animated_Log.push("")
    else
      Soulpour777::Animated_Log::Animated_Log[0].insert(0,"[#{text}]") unless (text == @text) || (text == "")
    end
    if text.is_a?(String) && (@text != text || $game_message.name_win_min_width > contents.width)
      @text = text
      resize(*calc_window_size_by_text(text)) unless text.empty?
      update_placement
      refresh
    end
  end
end

class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Process All Text
  #--------------------------------------------------------------------------
  def process_all_text
    log = convert_escape_characters($game_message.all_text)
    log = clean_ace_message_system_new_escape_characters(log)
    Soulpour777::Animated_Log.push(log)
    soul_process_all_text
  end
  def clean_ace_message_system_new_escape_characters(result)
    #---
    result.gsub!("\eAMSF[0]") {""}
    result.gsub!("\eAMSF[1]") {""}
    result.gsub!("\eAMSF[2]") {""}
    result.gsub!("\eAMSF[3]") {""}
    result.gsub!("\eAMSF[4]") {""}
    #---
    result.gsub!(/\eAC\[([-+]?\d+)\]/i) {""}
    result.gsub!(/\eAS\[([-+]?\d+)\]/i) {""}
    result.gsub!(/\eAN\[([-+]?\d+)\]/i) {""}
    #---
    result.gsub!(/\eNC\[(\d+)\]/i) {""}
    result.gsub!(/\eNI\[(\d+)\]/i) {""}
    result.gsub!(/\eNW\[(\d+)\]/i) {""}
    result.gsub!(/\eNA\[(\d+)\]/i) {""}
    result.gsub!(/\eNS\[(\d+)\]/i) {""}
    result.gsub!(/\eNT\[(\d+)\]/i) {""}
    #---
    result.gsub!(/\eIC\[(\d+)\]/i) {""}
    result.gsub!(/\eII\[(\d+)\]/i) {""}
    result.gsub!(/\eIW\[(\d+)\]/i) {""}
    result.gsub!(/\eIA\[(\d+)\]/i) {""}
    result.gsub!(/\eIS\[(\d+)\]/i) {""}
    result.gsub!(/\eIT\[(\d+)\]/i) {""}
    #---
    result.gsub!(/\eANI\[(\d+)\]/i) {""}
    result.gsub!(/\eOFF\[(\d+)\]/i) {""}
    result.gsub!(/\eWAV\[(\d+)\]/i) {""}
    result.gsub!(/\eSHK\[(\d+)\]/i) {""}
    result.gsub!(/\eRAN\[(\d+)\]/i) {""}
    result.gsub!(/\eBLN\[(\d+)\]/i) {""}
    result.gsub!(/\eMOJ\[(\d+)\]/i) {""}
    result.gsub!(/\eNAM\[(\d+)\]/i) {""}
    result.gsub!(/\eLIN\[(\d+)\]/i) {""}
    #---
    return result
  end
end

class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # Update
  #--------------------------------------------------------------------------
  def update
    super
    return if @opening || @closing
    dispose if close?
    if !self.disposed? && self.open?
      if Input::trigger?(:B)
        Sound.play_ok
        close
      elsif Input::trigger?(:Y)
        Sound.play_ok
        close
      elsif Input::repeat?(:UP)
        self.index = @index - 1
      elsif Input::repeat?(:DOWN)
        self.index = @index + 1
      elsif Input::repeat?(:LEFT)
        self.index = @index - 5
      elsif Input::repeat?(:RIGHT)
        self.index = @index + 5
      elsif Input::repeat?(:L)
        self.index = @index - 15
      elsif Input::repeat?(:R)
        self.index = @index + 15
      end
    end
  end
 
  #--------------------------------------------------------------------------
  # Refresh
  #--------------------------------------------------------------------------
  def refresh
    y = 0
    texts = []
    for i in 0...Soulpour777::Animated_Log::Animated_Log.size
      texts.push("") if i > 0
      texts.concat(Soulpour777::Animated_Log::Animated_Log[i].split("\n"))
    end
    create_log_contents(texts.size)
    for i in 0...texts.size
      text = convert_special_characters(texts[i])
      self.contents.draw_text(0, y, self.width - padding * 2, line_height, text)
      y += line_height unless text.include?("#{R2_Text_Log_Symbol::CHAR}")
    end
    @row_max = texts.size
    self.index = texts.size
  end
end
I apologize for not attaching links to previous threads, it just seemed to me that the problem was completely unrelated to past problems, but as it turned out, it was not. By the way, surprisingly, your patches worked the first time, i am very grateful that you always help me with scripts. I just recently switched from another engine to RPG Maker, but adding new functions like in the previous game, i ran into problems. Closer to the topic of the problem, now “ni” does not appear in the text and the names of the characters are displayed as expected, but the problem is that the patch somehow magically deletes the first word, i used a command like \c[3] and \c[0] after word with \c[3], without this command everything is shown, very strange..

WITHOUT \c[3]
1702134208715.png

1702134226608.png


WITH \c[3] and \c[0] after "TEST" word
1702134387196.png

1702134416571.png


JUST WITH \c[3]
1702134551725.png

1702134616806.png
i used a command like \c[3] and \c[0] after word with \c[3], without this command everything is shown, very strange..
The \C[3] code will be removed from the text because of a flaw in the script.
Thanks for pointing it out.
A lot of things made by Soulpour777 has a reputation of being bad code.
This is one example. I didn't notice it as I didn't try the color codes.

Any other codes you use that shows up in the log will also need to be added to this
Ruby:
class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # ? Convert Special Characters
  #--------------------------------------------------------------------------
  def convert_special_characters(text)
    text.gsub!(/\e.\[(\d+)\]/)        { "" }
    text.gsub!(/\e./)              { "" }
    text
  end
end

That will fix the color tags.
The previous code was
Ruby:
  def convert_special_characters(text)
    text.gsub!(/\e.\[.+\]/)        { "" }
    text.gsub!(/\e./)              { "" }
    text
  end
Which if you follow the regex it says .+ which is one or more characters. so what ended up happening was it took all the characters up to the space and removed them.
i.e. \C[3]TEST \C[0]
The \C[3] code will be removed from the text because of a flaw in the script.
Thanks for pointing it out.
A lot of things made by Soulpour777 has a reputation of being bad code.
This is one example. I didn't notice it as I didn't try the color codes.

Any other codes you use that shows up in the log will also need to be added to this
Ruby:
class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # ? Convert Special Characters
  #--------------------------------------------------------------------------
  def convert_special_characters(text)
    text.gsub!(/\e.\[(\d+)\]/)        { "" }
    text.gsub!(/\e./)              { "" }
    text
  end
end

That will fix the color tags.
The previous code was
Ruby:
  def convert_special_characters(text)
    text.gsub!(/\e.\[.+\]/)        { "" }
    text.gsub!(/\e./)              { "" }
    text
  end
Which if you follow the regex it says .+ which is one or more characters. so what ended up happening was it took all the characters up to the space and removed them.
i.e. \C[3]TEST \C[0]
It worked. Thank you very much for your help, all my problems with scripts have been solved, so you can take a break from my constant threads with a new problem, the thread can be closed.
This thread is being closed due to being solved. If you need it reopened, report it to let us know why. Thank you!

Opened at OP's request.

I have a problem with the Galv's Visual Novel Choices script, the problem is that while the selection is being shown, you can call up the menu on pressing button and it is shown quite buggy, i want it to be impossible to call up the message log while the choices are being shown, and i also encountered the problem is that without the script, the choices in the log are shown normally, but with the script they are strangely duplicated. And also i would like the log to show the selected choices, if this is possible, i will be very grateful.

SCREENSHOT SHOWING ALL PROBLEMS
1702413838375.png

As you can see, the text "Choose" is written first, then the log shows all available choices two times in a row, although the choice was shown only once.

HOW I WANT IT TO LOOK
1702414492267.png

You can make the selected answer appear in "[]" like this and change to green color, this is just an idea, the main thing is to just fix the bugs.
I stumbled on this for a little while until I realized that the log script adds the choices itself to the log.
And not in a good place. It does it right in the make command list which means the options are added before you make a selection.
Now the colour coding cannot be added to the log, but I'll look at changing the output for all text that has "[ ]"
Put this below Galv's Novel Choices
Ruby:
#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================
class Window_ChoiceList < Window_Command
  #--------------------------------------------------------------------------
  # * Create Command List
  #--------------------------------------------------------------------------
  def make_command_list
    $game_message.choices.each do |choice|
      add_command(choice, :choice)
    end
  end
  #--------------------------------------------------------------------------
  # * Enter Choice into Log
  #--------------------------------------------------------------------------
  def save_choice_to_log(index)
    log = ""
    $game_message.choices.each do |choice|
      next if choice.empty?
      text = convert_escape_characters(choice)
      log += "[#{text}]" if index == choice
      log += "#{text}" if index != choice
      log += "\n" if index == choice
      log += "\n"
    end
    return if log.empty?
    Soulpour777::Animated_Log.push(log)
    change_color(normal_color)
  end
  #--------------------------------------------------------------------------
  # * Call OK Handler
  #--------------------------------------------------------------------------
  def call_ok_handler
    save_choice_to_log($game_message.choices[index])
    galv_choice_call_ok_handler
    dispose_bgs
  end
  #--------------------------------------------------------------------------
  # * Call Cancel Handler
  #--------------------------------------------------------------------------
  def call_cancel_handler
    save_choice_to_log($game_message.choices[index])
    galv_choice_call_cancel_handler
    dispose_bgs
  end
end

My script order is
Yanfly Ace Message
My fix for yanfly escape characters script
MA ATS Special Message Codes
Tuckie wiggly text
Mithran text cache
Message Visibility by efeberk
soulpour message log
MA ATS Message Options
My fix for the Message log
Galv's Novel choices
This fix for Novel choices


Does this work for you for colouring the text in the log
Ruby:
module R2_Choice_Colour_Log
  CHOICE_COLOUR = Color.new(20,200,20)
end

#==============================================================================
# ** Window_MessageLog
#------------------------------------------------------------------------------
#  This message window is used to display the messages. [Window_Base]
#==============================================================================

class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # Refresh
  #--------------------------------------------------------------------------
  def refresh
    y = 0
    texts = []
    for i in 0...Soulpour777::Animated_Log::Animated_Log.size
      texts.push("") if i > 0
      texts.concat(Soulpour777::Animated_Log::Animated_Log[i].split("\n"))
    end
    create_log_contents(texts.size)
    for i in 0...texts.size
      text = convert_special_characters(texts[i])
      change_color(R2_Choice_Colour_Log::CHOICE_COLOUR) if text.include?("#{R2_Text_Log_Symbol::CHAR}")
      self.contents.draw_text(0, y, self.width - padding * 2, line_height, text)
      change_color(normal_color)
      y += line_height unless text.include?("#{R2_Text_Log_Symbol::CHAR}")
    end
    @row_max = texts.size
    self.index = texts.size
  end
end
I stumbled on this for a little while until I realized that the log script adds the choices itself to the log.
And not in a good place. It does it right in the make command list which means the options are added before you make a selection.
Now the colour coding cannot be added to the log, but I'll look at changing the output for all text that has "[ ]"
Put this below Galv's Novel Choices
Ruby:
#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================
class Window_ChoiceList < Window_Command
  #--------------------------------------------------------------------------
  # * Create Command List
  #--------------------------------------------------------------------------
  def make_command_list
    $game_message.choices.each do |choice|
      add_command(choice, :choice)
    end
  end
  #--------------------------------------------------------------------------
  # * Enter Choice into Log
  #--------------------------------------------------------------------------
  def save_choice_to_log(index)
    log = ""
    $game_message.choices.each do |choice|
      next if choice.empty?
      text = convert_escape_characters(choice)
      log += "[#{text}]" if index == choice
      log += "#{text}" if index != choice
      log += "\n" if index == choice
      log += "\n"
    end
    return if log.empty?
    Soulpour777::Animated_Log.push(log)
    change_color(normal_color)
  end
  #--------------------------------------------------------------------------
  # * Call OK Handler
  #--------------------------------------------------------------------------
  def call_ok_handler
    save_choice_to_log($game_message.choices[index])
    galv_choice_call_ok_handler
    dispose_bgs
  end
  #--------------------------------------------------------------------------
  # * Call Cancel Handler
  #--------------------------------------------------------------------------
  def call_cancel_handler
    save_choice_to_log($game_message.choices[index])
    galv_choice_call_cancel_handler
    dispose_bgs
  end
end

My script order is
Yanfly Ace Message
My fix for yanfly escape characters script
MA ATS Special Message Codes
Tuckie wiggly text
Mithran text cache
Message Visibility by efeberk
soulpour message log
MA ATS Message Options
My fix for the Message log
Galv's Novel choices
This fix for Novel choices


Does this work for you for colouring the text in the log
Ruby:
module R2_Choice_Colour_Log
  CHOICE_COLOUR = Color.new(20,200,20)
end

#==============================================================================
# ** Window_MessageLog
#------------------------------------------------------------------------------
#  This message window is used to display the messages. [Window_Base]
#==============================================================================

class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # Refresh
  #--------------------------------------------------------------------------
  def refresh
    y = 0
    texts = []
    for i in 0...Soulpour777::Animated_Log::Animated_Log.size
      texts.push("") if i > 0
      texts.concat(Soulpour777::Animated_Log::Animated_Log[i].split("\n"))
    end
    create_log_contents(texts.size)
    for i in 0...texts.size
      text = convert_special_characters(texts[i])
      change_color(R2_Choice_Colour_Log::CHOICE_COLOUR) if text.include?("#{R2_Text_Log_Symbol::CHAR}")
      self.contents.draw_text(0, y, self.width - padding * 2, line_height, text)
      change_color(normal_color)
      y += line_height unless text.include?("#{R2_Text_Log_Symbol::CHAR}")
    end
    @row_max = texts.size
    self.index = texts.size
  end
end
I placed it in the right order, now there is no duplication of choices in the message log, but i still have a problem with the selection graphics not disappearing in the message log in such a strange way. I also want the text in the message log to be colored correctly, because i use a script to change the window graphics during the game, and there are need to be different colors for the text if you even used "\nb{}".

As you can see, everything is fine with the choices without pressing button
1702476435723.png


We press the button and the choices do not disappear
1702476449810.png


WITHOUT "\nb{}" BUT USED WHITE WINDOWSKIN
1702477132162.png


STILL WITHOUT A NAME BUT NOW GREEN
1702477143764.png


WE MADE A NAME BUT NOW IF A GREEN WINDOW WAS USED IT COLORATES ALL THE PAST TEXT
1702477156625.png


HOW I NEED IT TO LOOK:
1702477478368.png
You need to send me a demo project.
I don't get that issue at all.
Also to have normal text coloured without a ] in the name will be very complicated.
1702503636813.png

1702503654501.png

1702503677796.png

1702503695045.png
You need to send me a demo project.
I don't get that issue at all.
Also to have normal text coloured without a ] in the name will be very complicated.
View attachment 287824
View attachment 287825
View attachment 287826
View attachment 287827
OK. I just want one thing that will prevent these problems from appearing. I want it to be impossible to open the message log during the dialogue and display of the choice, is this possible? I want that when any text window is shown, it cannot be opened.
Just change the update method in soulpour message log. line 304
Ruby:
  def update
    if @window_log
      update_message_log
    elsif Input.trigger?(Soulpour777::Animated_Log::Message_Log_Button_Mode)
      if !$game_message.busy?
        @window_log = Window_MessageLog.new
        update_message_log
      else
        animated_message_log_upd
      end
    else
      animated_message_log_upd
    end
  end
I stumbled on this for a little while until I realized that the log script adds the choices itself to the log.
And not in a good place. It does it right in the make command list which means the options are added before you make a selection.
Now the colour coding cannot be added to the log, but I'll look at changing the output for all text that has "[ ]"
Put this below Galv's Novel Choices
Ruby:
#==============================================================================
# ** Window_ChoiceList
#------------------------------------------------------------------------------
#  This window is used for the event command [Show Choices].
#==============================================================================
class Window_ChoiceList < Window_Command
  #--------------------------------------------------------------------------
  # * Create Command List
  #--------------------------------------------------------------------------
  def make_command_list
    $game_message.choices.each do |choice|
      add_command(choice, :choice)
    end
  end
  #--------------------------------------------------------------------------
  # * Enter Choice into Log
  #--------------------------------------------------------------------------
  def save_choice_to_log(index)
    log = ""
    $game_message.choices.each do |choice|
      next if choice.empty?
      text = convert_escape_characters(choice)
      log += "[#{text}]" if index == choice
      log += "#{text}" if index != choice
      log += "\n" if index == choice
      log += "\n"
    end
    return if log.empty?
    Soulpour777::Animated_Log.push(log)
    change_color(normal_color)
  end
  #--------------------------------------------------------------------------
  # * Call OK Handler
  #--------------------------------------------------------------------------
  def call_ok_handler
    save_choice_to_log($game_message.choices[index])
    galv_choice_call_ok_handler
    dispose_bgs
  end
  #--------------------------------------------------------------------------
  # * Call Cancel Handler
  #--------------------------------------------------------------------------
  def call_cancel_handler
    save_choice_to_log($game_message.choices[index])
    galv_choice_call_cancel_handler
    dispose_bgs
  end
end

My script order is
Yanfly Ace Message
My fix for yanfly escape characters script
MA ATS Special Message Codes
Tuckie wiggly text
Mithran text cache
Message Visibility by efeberk
soulpour message log
MA ATS Message Options
My fix for the Message log
Galv's Novel choices
This fix for Novel choices


Does this work for you for colouring the text in the log
Ruby:
module R2_Choice_Colour_Log
  CHOICE_COLOUR = Color.new(20,200,20)
end

#==============================================================================
# ** Window_MessageLog
#------------------------------------------------------------------------------
#  This message window is used to display the messages. [Window_Base]
#==============================================================================

class Window_MessageLog < Window_Base
  #--------------------------------------------------------------------------
  # Refresh
  #--------------------------------------------------------------------------
  def refresh
    y = 0
    texts = []
    for i in 0...Soulpour777::Animated_Log::Animated_Log.size
      texts.push("") if i > 0
      texts.concat(Soulpour777::Animated_Log::Animated_Log[i].split("\n"))
    end
    create_log_contents(texts.size)
    for i in 0...texts.size
      text = convert_special_characters(texts[i])
      change_color(R2_Choice_Colour_Log::CHOICE_COLOUR) if text.include?("#{R2_Text_Log_Symbol::CHAR}")
      self.contents.draw_text(0, y, self.width - padding * 2, line_height, text)
      change_color(normal_color)
      y += line_height unless text.include?("#{R2_Text_Log_Symbol::CHAR}")
    end
    @row_max = texts.size
    self.index = texts.size
  end
end
Everything works fine, by the way, i myself solved the problem with the wrong colors in the message log, added a few lines to the Choice Colour Log:
After line 2 ->
Code:
TEXT_COLOUR = Color.new(0,255,0)
After line 27 ->
Code:
change_color(R2_Choice_Colour_Log::TEXT_COLOUR)

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/support-names-and-disable-parallax-motion.163611/