Yanfly Buff and State Core: http://www.yanfly.moe/wiki/Buffs_&_States_Core_(YEP)
SRD HudMaker: My modified version of the text file is attached.
I am trying make one of my actor change their face graphic when they obtain a certain state.
Similiar thread I followed along with what they did and the face didn't change: https://forums.rpgmakerweb.com/index.php?threads/faceset-changes-with-state.79819/
Also here is what I have what I have in my state notebox.
SRD HudMaker: My modified version of the text file is attached.
I am trying make one of my actor change their face graphic when they obtain a certain state.
Similiar thread I followed along with what they did and the face didn't change: https://forums.rpgmakerweb.com/index.php?threads/faceset-changes-with-state.79819/
Also here is what I have what I have in my state notebox.
<Custom Apply Effect>
if (target.isActor()) {
if (target.actorId() === 1) {
target.setFaceImage('Actor1', index);
} else if (target.actorId() === 2) {
target.setFaceImage('Actor1', 4);
} else if (target.actorId() === 3) {
target.setFaceImage('Actor1', index);
}
}
</Custom Apply Effect>
Repeat the chain for as many actors as your game has.
This custom apply effect will change your actor's face to the face specified by the filename and the index.
Example: target.setFaceImage('Actor1', 0);
This will set the face image to Harold's picture.
Yes, you will have to specify the exact face for each actor for each state (I'm pretty sure there's no other way of doing it, no matter what plugin one makes).
To return the face back to the original once the state is removed:
<Custom Remove Effect>
if (target.isActor()) {
if (target.actorId() === 1) {
target.setFaceImage('Actor1', index);
} else if (target.actorId() === 2) {
target.setFaceImage('Actor1', 4);
} else if (target.actorId() === 3) {
target.setFaceImage('Actor1', index);
}
}
</Custom Remove Effect>
if (target.isActor()) {
if (target.actorId() === 1) {
target.setFaceImage('Actor1', index);
} else if (target.actorId() === 2) {
target.setFaceImage('Actor1', 4);
} else if (target.actorId() === 3) {
target.setFaceImage('Actor1', index);
}
}
</Custom Apply Effect>
Repeat the chain for as many actors as your game has.
This custom apply effect will change your actor's face to the face specified by the filename and the index.
Example: target.setFaceImage('Actor1', 0);
This will set the face image to Harold's picture.
Yes, you will have to specify the exact face for each actor for each state (I'm pretty sure there's no other way of doing it, no matter what plugin one makes).
To return the face back to the original once the state is removed:
<Custom Remove Effect>
if (target.isActor()) {
if (target.actorId() === 1) {
target.setFaceImage('Actor1', index);
} else if (target.actorId() === 2) {
target.setFaceImage('Actor1', 4);
} else if (target.actorId() === 3) {
target.setFaceImage('Actor1', index);
}
}
</Custom Remove Effect>