Help using Actor Transformations (YEP MV Plugin Tips & Tricks)

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
207
Reaction score
26
First Language
korean
Primarily Uses
RMMV
Hi !

I'm making various skills.
These are skills that power up (or transform) the user.
So if I use the skill, I want to convert only the Facechip of the act.
So I found Actor Transformations in Yanfly's Tip & Trick.

http://www.yanfly.moe/wiki/Actor_Transformations_(MV_Plugin_Tips_&_Tricks)

However, this tip&trick is a bit far from what I use because it's a technique that many characters share the same skill.
In my case, each character has its own transformation technology, so there's no need to check it out like that.
But I don't know how to change it to be applied.
Can you help me?

What I want.
Act 106 receives State 89 using Skill 195
The facechip of Act 106 will then be replaced by the image of column 0 1 of image named FACE-1.
Then when the state is released (after the battle), it returns to its original state.
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
207
Reaction score
26
First Language
korean
Primarily Uses
RMMV
OH... NVM guys...

Code:
<Custom Apply Effect>
if (user.isActor()) {
  user._prevFaceName = user._prevFaceName || user._faceName;
  user._prevFaceIndex = user._prevFaceIndex || user._faceIndex;
    var faceName = 'MY TEXT BLABLA';
    var faceIndex = 0;
  user.setFaceImage(faceName, faceIndex);
  user.refresh();
}
</Custom Apply Effect>

<Custom Remove Effect>
var faceName = user._prevFaceName;
var faceIndex = user._prevFaceIndex;
user.setFaceImage(faceName, faceIndex);
user._prevFaceName = undefined;
user._prevFaceIndex = undefined;
user._priorityFaceName = undefined;
user._priorityFaceIndex = undefined;
user._prevFaceName = undefined;
user._prevFaceIndex = undefined;
user.refresh();
</Custom Remove Effect>
I solved it with this.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Finally done! Time to continue the other one.
Grass... Earth... Sand... Snow! Working on edits for some new autotiles for MZ/MV
Waiting on approval on my One Map Challenge game, which I made to get a feel for RPG Maker. I was able to complete it before MZ's release, now I can focus fully on the MZ game I want to make. I'm excited, ya'll.

I have recently returned to try and developing games after I learned how to use digital drawing software.

My goal is to start simple and small. I am mostly aiming to create a game that I would play, and to tell a story that I would like to read. :smile:
RayGarden7 wrote on Geovid's profile.
Hey I'm new the RPG Maker forms as well and was having the same problem you are with needing 30 post or 30 threads we must complete. Maybe we could help each other out? Why you on the forms what is your goal?

Forum statistics

Threads
100,811
Messages
979,841
Members
132,450
Latest member
GriffithVIII
Top