MV YED Sideview change actor sprite via reading other actors notetags

Are you using YEP_BuffsStateCore? If so, there might be a way to do this in the state itself.
i am, the most ive been able to accomplish is changing the idle animation to another animation on the sheet but the reason i want to read other notetags in the first place is because im trying to avoid having too big of spritesheets since im already kind of pushing it with 1350x5850 and i have 12 playable characters who also have equally big sheets

if theres some way to use another spritesheet entirely via buffstatescore then thats perfect though
I use this for a zombie state:
Code:
<Custom Apply Effect>
  if (target.isActor()) {
    name = target.battlerName();
    newname = name.replace('_Zombie',"");
    var name1 = newname + '_Zombie';
    target.setBattlerImage(name1);
    target.refresh();
 }
</Custom Apply Effect>
<Custom Remove Effect>
if (target.isActor()) {
    name = target.battlerName();
    name1 = name.replace('_Zombie',"");
    target.setBattlerImage(name1);
    target.refresh();
}
</Custom Remove Effect>
Whenever an actor is inflicted with the zombie state the state changes their battler graphic to the zombie modified one. I had to change the graphic and rename it so it would match up but it works great for what I use it for. I have a few states in my game that do this kind of thing.

If you need help working this for your purposes let me know... I've worked on this a lot and finally got it to do what I wanted, so I might be able to help out.
so if actor 1 whos default sprite is Actor1.png has the state then the game searches for Actor1_Zombie.png i assume
so if actor 1 whos default sprite is Actor1.png has the state then the game searches for Actor1_Zombie.png i assume
Yes, essentially that's it. The state will check if the target [The one getting infected] is an actor. After that, if true, then the state will dump that actor's battler sprite sheet into a variable. Then it will delete the "_Zombie" [I didn't want multiple copies of the _Zombie to be added if the state is reapplied] and then it makes a new var and adds the string "_Zombie" to the Battler sprite sheet variable. Finally, it changes the target's battler sheet to the new battler sheet [with the newly added appendage] and refreshes the actor.

When you remove the state, just do the same thing, but leave off adding the new string to the variable.

EDIT: I forgot to mention that this DOES NOT crash the game if the new image file for the battler is not there. It'll just not change and give you a message that the asset could not be found.

EDIT2: Also, this works for multiple actors on the same state. As long as the actor being infected has a new image sheet that is named the same as what the sate is looking for, then it will change any actor to their new image.

My naming is like this:
Actor 1:
Main Image: Story Characters-MAIN.png
Zombie: Story Characters-MAIN_Zombie.png

Actor 2:
Main: Story Characters-Support1.png
Zombie: Story Characters-Support1_Zombie.png
im just completely baffled at this point because somehow its still only effecting one of the 2 actors im testing it with i have no idea whats even the problem
like it still works with actor 5 but for some inexplicable reason just wont work with actor 12
Can you snap a screenshot of your setup? The state, the actors, and the image file naming?

Screenshot the State... But it might be a good idea to copy the entire note tag and post it here in code. The image you can copy the filename and paste them here. The actors - not so much, but maybe there's something in the notetags that might be hindering the state from working properly.

And what exactly is it doing? Can you explain that a little, what is not working and what is it not doing?
for context i have a test blade weapon and the way im testing the sprites changing is by having the 2 actors swap spritesheets
this is my version of the state notetag

JavaScript:
<Custom Apply Effect>


  if (target.isActor()) {


    name = target.battlerName();


    newname = name.replace('_blade',"");


    var name1 = newname + '_blade';


    target.setBattlerImage(name1);


    target.refresh();


 }


</Custom Apply Effect>


<Custom Remove Effect>


if (target.isActor()) {


    name = target.battlerName();


    name1 = name.replace('_blade',"");


    target.setBattlerImage(name1);


    target.refresh();


}


</Custom Remove Effect>

1723062260520.png

the state itself is essentially unmodified

1723062335245.png

the common event for checking (parallel+ ran in troops)

1723062459044.png

these are the sheets

1723062621956.png

and also heres the actor list i think you asked for
Do you have the Passive States Plugins? You could add the Passive State to the weapon and just have it work that way instead of using a conditional branch in a parallel process common event.

And what is not happening? I mean everything is looking good... Are you using a plugin to make your sprite sheet so big? I wonder if that might be hindering the buffstatecore from working like it should. Can you post a screenshot of your plugin list?
passive states is a good idea ill look into that, otherwise like i said i use YED sideview battler to make the spritesheets bigger and it only reads notetags, which is the whole reason i have to do all of this bc otherwise i could just use the change actor command

1723064060313.png

1723064082690.png

1723064109808.png

1723064136073.png

heres all my plugins anyways sorry for how unorganized they are
ok had a realization that this is like not the way to go about this, because the way YED works + the way my sheets/animations are done theres too many specifics defined in notetags that dont translate when im just swapping images (animation frames, speed, index, etc)

i think finding a way to have notetags read individually is still the best way to go about this
Did you try turning off the GALV_imageCache and see if that works for you?

Also, the state change way that I've done things only affects the image, if everything on the image is in the same place as the original image than it shouldn't effect how the other notetags work.
the problem is that i didnt place everything in the same row (i didnt think that far ahead,,) and also characters animations would have to use the same frame count and would need to use the same speed

i gave each character very distinct animations for everything so unless i redid a ton it wouldnt work
i didnt think about image cache somehow effecting it though the only thing its set to load is 2 menu background

for better reference, these are the notetags for actor 5


JavaScript:
<Sideview Battler: Actor5>

<Sideview Battler Frames: 9>

<Sideview Battler Speed: 12>

<Sideview Battler Size: 350, 450>



<Sideview Battler Motion>

Name: walk

Index: 0

Loop

Frames: 6

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: guard

Index: 2

Frames: 6

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: kick

Index: 3

Frames: 7

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: punch

Index: 1

Frames: 7

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: damage

Index: 4

Frames: 4

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dead

Index: 5

Frames: 9

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: throw

Index: 6

Frames: 9

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dying

Index: 7

Loop

Frames: 6

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: abnormal

Index: 7

Loop

Frames: 6

Speed: 12

</Sideview Battler Motion>





<Sideview Battler Motion>

Name: item

Index: 8

Frames: 7

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: tired

Index: 9

Loop

Frames: 5

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: evade

Index: 10

Frames: 3

Speed: 6

</Sideview Battler Motion>

as opposed to actor 12


JavaScript:
<Sideview Battler: Actor12>

<Sideview Battler Frames: 9>

<Sideview Battler Speed: 12>

<Sideview Battler Size: 350, 450>



<Sideview Battler Motion>

Name: walk

Index: 0

Loop

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: guard

Index: 2

Frames: 4

Speed: 7

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: damage

Index: 1

Frames: 5

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: punch

Index: 3

Frames: 7

Speed: 9

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: kick

Index: 4

Frames: 6

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: abnormal

Index: 5

Loop

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dying

Index: 5

Loop

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dead

Index: 6

Frames: 9

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: composure

Index: 7

Frames: 6

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: tired

Index: 8

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: throw

Index: 9

Frames: 9

Speed: 6

</Sideview Battler Motion>
the problem is that i didnt place everything in the same row (i didnt think that far ahead,,) and also characters animations would have to use the same frame count and would need to use the same speed

i gave each character very distinct animations for everything so unless i redid a ton it wouldnt work
i didnt think about image cache somehow effecting it though the only thing its set to load is 2 menu background

for better reference, these are the notetags for actor 5


JavaScript:
<Sideview Battler: Actor5>

<Sideview Battler Frames: 9>

<Sideview Battler Speed: 12>

<Sideview Battler Size: 350, 450>



<Sideview Battler Motion>

Name: walk

Index: 0

Loop

Frames: 6

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: guard

Index: 2

Frames: 6

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: kick

Index: 3

Frames: 7

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: punch

Index: 1

Frames: 7

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: damage

Index: 4

Frames: 4

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dead

Index: 5

Frames: 9

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: throw

Index: 6

Frames: 9

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dying

Index: 7

Loop

Frames: 6

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: abnormal

Index: 7

Loop

Frames: 6

Speed: 12

</Sideview Battler Motion>





<Sideview Battler Motion>

Name: item

Index: 8

Frames: 7

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: tired

Index: 9

Loop

Frames: 5

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: evade

Index: 10

Frames: 3

Speed: 6

</Sideview Battler Motion>

as opposed to actor 12


JavaScript:
<Sideview Battler: Actor12>

<Sideview Battler Frames: 9>

<Sideview Battler Speed: 12>

<Sideview Battler Size: 350, 450>



<Sideview Battler Motion>

Name: walk

Index: 0

Loop

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: guard

Index: 2

Frames: 4

Speed: 7

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: damage

Index: 1

Frames: 5

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: punch

Index: 3

Frames: 7

Speed: 9

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: kick

Index: 4

Frames: 6

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: abnormal

Index: 5

Loop

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dying

Index: 5

Loop

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: dead

Index: 6

Frames: 9

Speed: 6

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: composure

Index: 7

Frames: 6

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: tired

Index: 8

Frames: 4

Speed: 12

</Sideview Battler Motion>



<Sideview Battler Motion>

Name: throw

Index: 9

Frames: 9

Speed: 6

</Sideview Battler Motion>
I can see how that is a problem... I'm sorry, I have no idea how to help you with this now. Though that's cool that you have that like that. It allows for so much customization and way better animations. I wish I was an artist and could do that stuff.
ty i really appreciate it even if you couldnt figure it out, it seems like itd be so much simpler than it is i havent been able to figure this out for months now

Original thread: https://forums.rpgmakerweb.com/threads/yed-sideview-change-actor-sprite-via-reading-other-actors-notetags.170799/