Hello this is a perfect plugin i tired contacting the maker for some help but no response. Is there a way to change this where when an actor takes damge they changed to a damage faced when hit or is there a plugin out there that can do this ?
Need help with WAY_CustomFaceImageEval
● ARCHIVED · READ-ONLY
-
-
Can you add a link to the plugin so others can find it easier without having to search for it?
Sure, you can do this by adding a state to the player when they get attacked and have the Custom Face Image Eval check for the state.
But when/how do you want the face to go back to normal? -
Here you go https://waynee95.me/way-custom-face-image-eval/ As for the face going back to normal i dont know im not really savy with that type of stuff.
-
I don't mean technically, I just mean describe when you want the "damaged" face to start and the "normal" face to come back and people can help you with the technical details (ex. I want the damaged face to start when the damage is dealt and I want the normal face to come back when...)
-
Yeah when the damage is delt it quickly turns to it being hurt and normal when the attack is over.
-
bump
-
Did you try putting a state on the actor and having the Face Image Eval plugin check for that state, as I suggested in the first post?
Do you need help with that approach? -
Yes i do actually,i dont know how to.
-
You can have the attack add a state to the actor. Then in the notetag of the actor, you would write this to check for the state:
Code:Replace X, 'hurt_face_name' and 0 with your actual values.<Custom Face Image Eval> if (user.isStateAffected(X)) { faceName = 'hurt_face_name'; faceIndex = 0; } </Custom Face Image Eval>
Getting the state off depends on what your battle configuration is. Without knowing that, I can't really suggest anything. For example, if you use Victor's Battle Motions, you can remove the state in the "finish" phase of the battle motion.
If you want to remove state X after Y amount of time (miliseconds), you can include this in the damage formula.
Code:window.setTimeout(() => b.removeState(X), Y); -
How do i add that second part to the damage formula? It gives me an error.
-
It gives me an error.
- It would be extremely helpful if you stated what the error is.
- It would be even better if you provided a screenshot of the full error message (press F8 to open the Console during playtest)
- You should do this any time you get an error and ask for help
SpoilerThe timeout function is in front of the actual damage formula. You can't see it all in one row, but after the semi-colon is the calculation: a.atk - b.def for example
-
That did it ! Thank you so much for your help sorry for being scatter barined and not talking a screenshot this has helped alot, You sir have saved the day