MV State icon location

Hi all, I am using the Yep_X_ActSeqPack2 and have the following lines

--------------------------------------------------------------------------
Sprite_Battler.prototype.updateStateSprites = function() {
if (this._stateIconSprite) {
var height = this._battler.spriteHeight() * -0.8;
height -= Sprite_StateIcon._iconHeight;
height /= this.scale.y;
this._stateIconSprite.y = height;
}
if (this._stateSprite) {
var height = (this._battler.spriteHeight() - 64 * this.scale.y) * -1;
this._stateSprite.y = height;
}
---------------------------------------------------------------------------
if i change to
var height = this._battler.spriteHeight() * -0.8;
to
var height = this._battler.spriteHeight() * -0.5;

I can change the heigh of the state sprite and the state counter.
height is not the only thing I want to change. I also want to change the state/counter x location.

additionally, I have had success moving the state and icon counter through editing the core scripts/ the options given to me through the plugin also but if you move them too much they disappear. They get cut off. Only using the above code will move everything without cutting the number.

any help please? Thank you!
Could you show a diagram of what you're trying to do? Why not adjust your character sprite graphics?
The kinda simple answer to your question is that Action Sequence Pack 2 is not responsible for drawing the state icons in the first place - what led you to look there for it? That code is just to automatically scale the icons if enemies have their height changed. 😉

The code you're looking for is:
Code:
Sprite_StateIcon.prototype.initMembers = function() {
    this._battler = null;
    this._iconIndex = 0;
    this._animationCount = 0;
    this._animationIndex = 0;
    this.anchor.x = 0.5;
    this.anchor.y = 0.5;
};

additionally, I have had success moving the state and icon counter through editing the core scripts/ the options given to me through the plugin also but if you move them too much they disappear.
Modifying the above function works just fine for me to ridiculous degrees:
Screenshot 2023-04-26 090626.png

If that doesn't work for you, you need to look through your various plugins to see what's overwriting it and make similar changes in there.
@ATT_Turan
Firstly, thank you for all your support and our activity! at @AquaEcho, not a bad idea! in the end I ended up moving the icon to slightly above the character to the left. If I use the anchor code that you suggested @ATT_Turan it will move the icon but not the turn counter that and the turn counter will disappear if I move it too far from it's original location so I just compromised and placed and placed them to the furthest location that it would allow me without disappearing. The final result was.
2023-04-26 (1).png


my target, what I actually wanted was

epremasteredgamejampic4.png


But I can't move the number without it disappearing if i move it to far from the middle where the character is standing on top of it. So I have to move it to slightly above the character. unfortunately.

I've published ahead and published with the changes now but if someone has a solution before Friday I'd be soooo down! Friday is when I am hoping to start the windows publish.
So, without you citing what you tried to do to move the turn counter, this might be a duplicate suggestion.

But the placement of the bitmap that holds the turn indicator and state counter is defined in the the Buffs & States Core function Sprite_StateIcon.prototype.initMembers.

If you go to lines 1939 and 1940 and change them to the same values that you used in the function above for the state icon, they should display perfectly. Works in my testing.

Original thread: https://forums.rpgmakerweb.com/threads/state-icon-location.156985/