Animated Face Graphic for Dialogue Box

hi everyone, I have a question for those who are knowledgeable about programming. does anyone know if it's possible to write a script for VX Ace that would make the face icon play an animation while the text is being typed? is this even possible, or is the engine too outdated for such tricks? :LZYoops:
'Modern Algebra' has a script for animated faces. Check if you can still access the site where their plugins scripts are hosted (link in their signature).
As an alternate to MA face Options I wrote this as an addon to Mr Trivel Animated Faces
Spoiler: Animated Face Message
Ruby:
# ╔═══════════════════════════════════════════════╦════════════════════╗
# ║ Title: Animated Face Message                  ║  Version: 1.00     ║
# ║ Author: Roninator2                            ║                    ║
# ╠═══════════════════════════════════════════════╬════════════════════╣
# ║ Function:                                     ║   Date Created     ║
# ║                                               ╠════════════════════╣
# ║   Show face animations                        ║    01 Mar 2025     ║
# ╚═══════════════════════════════════════════════╩════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Requires: Mt Trivel Animated Faces                                 ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Brief Description:                                                 ║
# ║       Cycle through face animations                                ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Instructions:                                                      ║
# ║   Follow Process for Animated Faces script                         ║
# ║   use \AF[1] in message to use actor id 1 sequence                 ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Updates:                                                           ║
# ║ 1.00 - 01 Mar 2025 - Script finished                               ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Credits and Thanks:                                                ║
# ║   Roninator2                                                       ║
# ║                                                                    ║
# ╚════════════════════════════════════════════════════════════════════╝
# ╔════════════════════════════════════════════════════════════════════╗
# ║ Terms of use:                                                      ║
# ║  Follow the original Authors terms of use where applicable         ║
# ║    - When not made by me (Roninator2)                              ║
# ║  Free for all uses in RPG Maker except nudity                      ║
# ║  Anyone using this script in their project before these terms      ║
# ║  were changed are allowed to use this script even if it conflicts  ║
# ║  with these new terms. New terms effective 03 Apr 2024             ║
# ║  No part of this code can be used with AI programs or tools        ║
# ║  Credit must be given                                              ║
# ╚════════════════════════════════════════════════════════════════════╝

# ╔════════════════════════════════════════════════════════════════════╗
# ║                      End of editable region                        ║
# ╚════════════════════════════════════════════════════════════════════╝

class Window_Message < Window_Base
  #--------------------------------------------------------------------------
  # * Clear Instance Variables
  #--------------------------------------------------------------------------
  alias r2_clear_face_actor_animated_name   clear_instance_variables
  def clear_instance_variables
    r2_clear_face_actor_animated_name
    @actor = nil
  end
  #--------------------------------------------------------------------------
  # * Determine Whether to Continue Displaying Text
  #--------------------------------------------------------------------------
  def text_continue?
    animated_face
    $game_message.has_text? && !settings_changed?
  end
  #--------------------------------------------------------------------------
  # * Process All Text
  #--------------------------------------------------------------------------
  alias r2_process_all_text_actor_animated_face   process_all_text
  def process_all_text
    @actor = nil
    r2_process_all_text_actor_animated_face
  end
  #--------------------------------------------------------------------------
  # * Determine Whether to Continue Displaying Text
  #--------------------------------------------------------------------------
  def animated_face
    contents.clear_rect(0,0,100,100)
    if @actor
      draw_actor_face(@actor, 0, 0, enabled = true)
    end
  end
  #--------------------------------------------------------------------------
  # * New Page
  #--------------------------------------------------------------------------
  def new_page(text, pos)
    contents.clear
    if @actor
      animated_face
    else
      draw_face($game_message.face_name, $game_message.face_index, 0, 0)
    end
    reset_font_settings
    pos[:x] = new_line_x
    pos[:y] = 0
    pos[:new_x] = new_line_x
    pos[:height] = calc_line_height(text)
    clear_flags
  end
  #--------------------------------------------------------------------------
  # new method: escape_actor_class_name
  #--------------------------------------------------------------------------
  def escape_actor_face_index(actor_id)
    actor_id = $game_party.members[actor_id.abs].id if actor_id <= 0
    @actor = $game_actors[actor_id]
    @actor = nil if @actor.nil?
  end
  def refresh
    animated_face if @actor
  end
end
class Window_Base < Window
  alias window_base_convert_escape_characters_ams convert_escape_characters
  def convert_escape_characters(text)
    result = window_base_convert_escape_characters_ams(text)
    result = r2_message_system_animated_face_characters(result)
    return result
  end
 
  #--------------------------------------------------------------------------
  # new method: convert_ace_message_system_new_escape_characters
  #--------------------------------------------------------------------------
  def r2_message_system_animated_face_characters(result)
    result.gsub!(/\eAF\[([-+]?\d+)\]/i) { escape_actor_face_index($1.to_i) }
    return result
  end
  #--------------------------------------------------------------------------
  # new method: escape_actor_class_name
  #--------------------------------------------------------------------------
  def escape_actor_face_index(actor_id)
    return ""
  end
 
end
thanks everyone!

Original thread: https://forums.rpgmakerweb.com/threads/animated-face-graphic-for-dialogue-box.175911/