I setup a transformation skill with Visustella plugins and I keep getting an error
#1
I setup a character transformation skill using the Visutella plugins and I keep getting this error every time I use the skill. EDIT: I uploaded a demo of the error with the paid content strippedĀ  DemoOFError.zip - Google Drive

[Image: yv5T6TI.png]


[Image: ojoE7M2.png]


This is the state linked to the skill:

[Image: nADY0lV.png]


These are the plugins I'm using.

[Image: X7ExNtK.png]

This is the code in the state note box.

JS On Add State>
if (user.isActor()) {
user._prevCharName = user._characterName;
user._prevCharIndex = user._characterIndex;
user._prevFaceName = user._faceName;
user._prevFaceIndex = user._faceIndex;
user._prevBattlerName = user._battlerName;
if (user.actorId() === 1) {
var charName = 'NIckSprite2';
var charIndex = 0;
var faceName = 'ME_PoG_Faces';
var faceIndex = 1;
var battlerName = 'Nick_Light_WerewolfBattle';
}
user.setCharacterImage(charName, charIndex);
user.setFaceImage(faceName, faceIndex);
user.setBattlerImage(battlerName);
user.refresh();
}
</JS On Add State>

<JS On Erase State>
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();
</JS On Erase State>


What I don't understand is this worked before and now it won't. I don't know what I did wrong this time. If anyone knows how to fix this please tell me as soon as possible. I want the error out of the way. The transformation skill is needed in my game. If there is another way to do this by making the character change back after a certain number of turns please tell me.
Reply


Messages In This Thread
I setup a transformation skill with Visustella plugins and I keep getting an error - by Rose Guardian - 6 hours ago

Possibly Related Threads…
Thread Author Replies Views Last Post
   Lead Actor Swapper script error Ace_V 25 20,965 09-07-2025, 01:22 PM
Last Post: DerVVulfman
   Plugin or Script help with Item menu, SKill menu, and Equip menu JayRay 3 6,758 11-22-2024, 07:02 PM
Last Post: JayRay
   Atoa ACBS, Equipment Set Add-on Error Solitaire 10 13,424 10-13-2024, 11:41 PM
Last Post: Solitaire
   A Skill that throws enemies? Bennerdeben 10 14,935 10-08-2024, 05:12 PM
Last Post: Bennerdeben
   [RMXP] Showing skill gained by leveling up on battle result FrQise 12 28,213 05-07-2021, 02:05 PM
Last Post: FrQise
   Skill Cooldown script Fenriswolf 11 31,019 12-10-2019, 11:10 AM
Last Post: Fenriswolf
   (RMVXace) Battle error with Tankentai's battle system, help. x( Starmage 0 6,912 02-14-2018, 04:25 PM
Last Post: Starmage
   Scan skill should show states Tumen 5 16,436 05-02-2017, 03:33 AM
Last Post: DerVVulfman
   Dervvulfman's Skill Tree (Micko's) Passive Skill Malfunction! reiji1337 6 17,540 04-28-2017, 03:27 AM
Last Post: reiji1337
  Expiration States with Atoa acbs: error Noctis 5 16,272 02-18-2017, 01:10 AM
Last Post: DerVVulfman



Users browsing this thread: 2 Guest(s)