mog monogatari VXACE, how to change menu icons

hope i got the right posting place for this
Is there any way to swap the menu busts for the characters (actor1) to another asset of our choice,
like with a script call? same way he lets you with his battle hud EX

My game has different Transformation forms and cosmetic changes, and the only place i'm unable to change is the Menu, the place you wanna see it reflected Most
(The version of monogatari is still untouched scriptwise, i just re-drew all the assets.)


1687488717960.png
hope i got the right posting place for this
lol - nope 🙂

Moved to: RGSSx Script Support
You can try this. You will have to change your character image names
Ruby:
class Actor_Menu_Pictures < Sprite
  def initialize(viewport = nil,index,actor_id)
      super(viewport)
      @index = index
      @actor_id = actor_id
      # file to be called Actor1_0.png
      # pick a variable range and change to the number below
      # $game_variables[@actor_id + *this number*].to_s)
      # so if you pick 50 then the variable for actor 1 will be 51
      self.bitmap = Cache.menu("Actor" + @actor_id.to_s + "_" +
        $game_variables[@actor_id + 100].to_s)
      self.z = 2
      set_position
      @slide_max = @org_pos[0] + 24
      auto_y = Graphics.height - self.bitmap.height
      self.ox = self.bitmap.width / 2
      self.x = @org_pos[0] - 15
      self.y = auto_y
      self.opacity = 0
      @op_time = 10 * @index
  end
end

Not tested and no idea if it will affect all scenes.
@Roninator2 You NEVER place a variable with a default value at the beginning of a list of arguments. They always go at the end of the list.
@Roninator2 You NEVER place a variable with a default value at the beginning of a list of arguments. They always go at the end of the list.
Again with your endless critiques for coding that was not done by me.
But you wouldn't know that since you didn't look at the original script.
If you expect me to change that, then I would have to change the entire script for every call that uses it (might only be one), ok fine I'll go look for that and change that as well (if it's only one)

This is for @kyonides to inspect
Ruby:
class Actor_Menu_Pictures < Sprite
  def initialize(index,actor_id,viewport = nil)
      super(viewport)
      @index = index
      @actor_id = actor_id
      # file to be called Actor1_0.png
      # pick a variable range and change to the number below
      # $game_variables[@actor_id + *this number*].to_s)
      # so if you pick 50 then the variable for actor 1 will be 51
      self.bitmap = Cache.menu("Actor" + @actor_id.to_s + "_" +
        $game_variables[@actor_id + 100].to_s)
      self.z = 2
      set_position
      @slide_max = @org_pos[0] + 24
      auto_y = Graphics.height - self.bitmap.height
      self.ox = self.bitmap.width / 2
      self.x = @org_pos[0] - 15
      self.y = auto_y
      self.opacity = 0
      @op_time = 10 * @index
  end
end

class Scene_Menu
  #--------------------------------------------------------------------------
  # ● Create Actor Pictures
  #--------------------------------------------------------------------------     
  def create_actor_pictures
      @actor_pictures = []
      members_size = $game_party.members.size
      members_size = $game_party.max_battle_members if members_size >= $game_party.max_battle_members
      for i in 0...members_size
         @actor_pictures.push(Actor_Menu_Pictures.new(i,$game_party.members[i].id,nil))
      end   
  end
end
The only thing I will tell you is that you better keep the original order without adding the viewport's default value due to compatibility issues. Viewport can safely be nil while being passed down to super but it shouldn't get a default value there.

I dunno what the rest of the script does so...

Hey and stop criticizing me for sharing my scripting wisdom for free!

Original thread: https://forums.rpgmakerweb.com/threads/mog-monogatari-vxace-how-to-change-menu-icons.158605/