MZ How do I reference in code the state effect on SV Actor in Battle?

Hi I am trying to reference the status effect image of this :
1630684832547.png


When I character has been hurt or paralyzed etc. I want to manipulate the position.
For example I have this for weapon :
"
Sprite_Weapon.prototype.initMembers = function() {
"

So which function accesses the state icon?
Search the code for Sprite_StateOverlay
Hey, thx!

I was able to edit the position of the state : ( Note : it moves it for all sv battlers so if you have a battle that is shorter than the rest you may need to account for that.
Anyone using this the variable numberxs and numberys, you can just put in a value or connect it so that it can be seen within the editor as params.


JavaScript:
Sprite_StateOverlay.prototype.initMembers = function() {


    Sprite_StateOverlay.prototype.initMembers = function() {
        this._battler = null;
        this._overlayIndex = 0;
        this._animationCount = 0;
        this._pattern = 0;
        this.anchor.x = numberxs;
        this.anchor.y = numberys;
    };

};


Hope this is helpful. I hope to help community as well as ask questions since im new here 🙂 Gotta give back what I am figuring out 😛

Original thread: https://forums.rpgmakerweb.com/threads/how-do-i-reference-in-code-the-state-effect-on-sv-actor-in-battle.140131/