How to refresh battle graphics instantly w/ Yanfly Ace Battle Engine?

In battle, I have some states that get applied to the character after an attack, but they won't show up until the character is attacked or until the next turn.

Another example is I have a druid character that can go into bear form and it changes his face graphic, but it doesn't change until the instances I just described...

Is there a way to call up the refresh graphics line of code on command to resolve this?

Thank you.
In the default version of RPG Maker VX Ace scripts there is no graphic for actors, that means you are using a script to add those graphics. Unless you tell us which script you are using (possibly providing a link) we cannot help you. Being not part of the default Scene_Battle it depends on how it is implemented.
Of course, sorry about that.

I'm using Yanfly scripts, so Core Engine and Ace Battle Engine are the main battle scripts I believe.

Link to Core Engine script:
https://github.com/Archeia/YEARepo/blob/master/Core/Ace_Core_Engine.rb

Here's a link to Ace Battle Engine:
https://github.com/Archeia/YEARepo/blob/master/Ace_Battle_Engine.rb
If I remember correctly you can call a common event in your skill and use a script call to add this:
Code:
SceneManager.scene.refresh_status
It should work.
That might work for the status icons, but right now I'm focusing on the face graphic change and it's not working for that....

I know it refreshes when they take damage, I'm not sure where that is in the code exactly.

So I see the code in the Battle Engine:
Code:
  #--------------------------------------------------------------------------
  # overwrite method: draw_face
  #--------------------------------------------------------------------------
  def draw_face(face_name, face_index, dx, dy, enabled = true)
    bitmap = Cache.face(face_name)
    fx = [(96 - item_rect(0).width + 1) / 2, 0].max
    fy = face_index / 4 * 96 + 2
    fw = [item_rect(0).width - 4, 92].min
    rect = Rect.new(fx, fy, fw, 92)
    rect = Rect.new(face_index % 4 * 96 + fx, fy, fw, 92)
    contents.blt(dx, dy, bitmap, rect, enabled ? 255 : translucent_alpha)
    bitmap.dispose
  end

That looks like it would have something to do with it? I'm super rusty with how the code works and how to call specific actions within the modules. I was hoping I didn't have to go watch scripting videos again. I'll keep looking into it and I appreciate your help.
If that didn't work it means that the refresh method for Window_BattleStatus does not refresh images. That being the case I am afraid you have wait until I can access yanfly script from my computer. Once I do that I will look where that one is. Unfortunately the piece of code you pasted is not the one needed (you can use that but that if you do you have to manually pass those parameters and calculate them).
Moved to: RGSSx Script Support
Ok I'm doing some more digging and starting to piece things together somewhat of how things work again, but I'm still working on it, but I thought I'd point out that I found this

Code:
  #--------------------------------------------------------------------------
  # overwrite method: refresh_status
  #--------------------------------------------------------------------------
  def refresh_status; return; end

So it looks like he made refresh_status do nothing? I'm trying to see what he replaced it with exactly and how to use it.
Well I found another way to get it done in the game, not sure if I can get the status icons to work properly now, but that's pretty minor---the face graphic was a lot more important. Thanks for your help!
Not sure if it would break thing that Yanfly had built it. But you can try to remove that line so that refresh_status method will be back at its default script functionality. Yanfly thought it wasn't efficient and they made a new method to refresh status window so that it only refresh an actor slot that need to be refreshed instead of redrawing the entire window.
I have Yanfly Battle Engine right in front of me now. It seems he created a new method called "status_redraw_target(target)".

To call that method you should use the following script call a common event (I included your character change of graphic inside it too).

Code:
a = $game_actors[your_actor_id]
a.set_graphic(character_name, character_index, character_face_name, character_face_index)
SceneManager.scene.status_redraw_target(a)

# character_name is your sprite file name
# character_index is your sprite index inside the file
# character_face_name is your actor face file name
# character_face_index is your actor face index inside the file (first row is 0-3, second 4-7)

You can also add a Fiber.yield at the end of it if you want everything to stop for a while after changing your actor face. I'd say something like this should be enough.
Code:
30.times { Fiber.yield }

This is tested and works in a blank project with just Yanfly scripts. If you are using other scripts that overwrite those methods I cannot guarantee this will work though.
Double-post notice: cloudstarr2

If you want to add something, just edit your earlier post and add the additional information/comment.

Original thread: https://forums.rpgmakerweb.com/threads/how-to-refresh-battle-graphics-instantly-w-yanfly-ace-battle-engine.97058/