I have a character who has a transform skill. If it is not used, everything is fine. However, once it's used, if the player tries to escape, the game crashes, with one exception. That exception is if it is this particular character who uses Escape. The console shows this:
I looked at the line in rmmz_managers, but couldn't see what that had to do with 'match' as that term is not used in that particular little section.
Neither can I understand why the message is refering to Static SV Battler. I don't have any static battlers, they are all animated.
I wondered if there was something in the state which effects the transformation, but couldn't see anything off about it. Also, the transformed actor can use escape without difficulty. However, for the sake of completeness, here is the note tag I have for that state in case there's something I've overlooked.
And finally, in case there is something basic that I've got wrong, here is the state
Sorting this out is way above my pay grade, so any help would be greatly appreciated.
Thank you.
I looked at the line in rmmz_managers, but couldn't see what that had to do with 'match' as that term is not used in that particular little section.
Neither can I understand why the message is refering to Static SV Battler. I don't have any static battlers, they are all animated.
I wondered if there was something in the state which effects the transformation, but couldn't see anything off about it. Also, the transformed actor can use escape without difficulty. However, for the sake of completeness, here is the note tag I have for that state in case there's something I've overlooked.
Code:
<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;
const charName = "Actor1";
const charIndex = 4;
const faceName = "Actor_Emos_01";
const faceIndex = 4;
const battlerName = "Garen_transformed";
user.setCharacterImage(charName, charIndex);
user.setFaceImage(faceName, faceIndex);
user.setBattlerImage(battlerName);
user.refresh();
}
</JS On Add State>
<JS On Erase State>
const charName = user._prevCharName;
const charIndex = user._prevCharIndex;
const faceName = user._prevFaceName;
const faceIndex = user._prevFaceIndex;
const battlerName = user._prevBattlerName;
user.setCharacterImage(charName, charIndex);
user.setFaceImage(faceName, faceIndex);
user.setBattlerImage(battlerName);
delete user._prevCharacterName;
delete user._prevCharacterIndex;
delete user._prevFaceName;
delete user._prevFaceIndex;
delete user._prevBattlerName;
user.refresh();
</JS On Erase State>
And finally, in case there is something basic that I've got wrong, here is the state
Sorting this out is way above my pay grade, so any help would be greatly appreciated.
Thank you.