Actor transformation

● ARCHIVED · READ-ONLY
Started by effenzee 2 posts View original ↗
  1. I HAVE RESOLVED MY OWN ISSUE, THANKS TO ANYONE WHO WAS MAYBE LOOKING INTO THIS FOR ME. IT WAS AN IMAGE DIRECTORY ISSUE.

    I am very new to Rpg maker I just bought MV about 2 weeks ago, have learned alot of the basic and now im trying to figure out using some plug ins, I have tried the actor transform as per Yanfly instruction i now get an error and not sure where ive gone wrong. I am very sure its something simple and im just missing it so i would be grateful for some help.

    The script i have in place for my state of tranformation is based on a few plugins from Yanfly.moe The plugins used for this are Battle core and buffs and state core.
    <Custom Apply Effect>
    if (user.isActor()) {
    user._prevCharName = user._prevCharName || user._characterName;
    user._prevCharIndex = user._prevCharIndex || user._characterIndex;
    user._prevFaceName = user._prevFaceName || user._faceName;
    user._prevFaceIndex = user._prevFaceIndex || user._faceIndex;
    user._prevBattlerName = user._prevBattlerName || user._battlerName;
    if (user.actorId() === 04) {
    var charName = 'mark2';
    var charIndex = 0;
    var faceName = 'mark';
    var faceIndex = 0;
    var battlerName = 'mark2';

    <Custom Remove Effect>
    var charName = user._prevCharName;
    var charIndex = user._prevCharIndex;
    var faceName = user._prevFaceName;
    var faceIndex = user._prevFaceIndex;
    var battlerName = user._prevBattlerName;
    user.setCharacterImage(charName, charIndex);
    user.setFaceImage(faceName, faceIndex);
    user.setBattlerImage(battlerName);
    user._priorityCharacterName = undefined;
    user._priorityCharacterIndex = undefined;
    user._prevFaceName = undefined;
    user._prevFaceIndex = undefined;
    user._priorityFaceName = undefined;
    user._priorityFaceIndex = undefined;
    user._prevFaceName = undefined;
    user._prevFaceIndex = undefined;
    user._priorityBattlerName = undefined;
    user._prevBattlerName = undefined;
    user.refresh();
    </Custom Remove Effect>

    included are the IMG files
  2. As your query is about how to get a Plugin to work in the way you intend, it needs to be in the section of the forum where those queries are dealt with.
    [move]Javascript/Plugin Support[/move]
    When you have a query about a plugin, we always ask that you provide a link to the web page where you got it. That way, if someone needs to check something in order to help you, they don't have to go hunting. Could you edit your opening post to include that.

    Next, you tell us that you get an error, but you do not tell us what that error is. This leaves us guessing about what has happened. So again, it would be helpful to edit your post to include that information.

    As an aside, we don't need to see all your actor graphics.