does it work when you do it in a regular event? Please give a link to the plugin so we don't have to go searching. And a screenshot of your common event.
As Shaz asked, does it work in a normal event outside a battle?
And, are you sure you are doing the command right?
You didn't state whether it works when you put it in a regular event. It might be related to your trying to do it inside a battle.
Is it below YEP_BattleEngineCore in your plugin list?
Could you please open the console (F8) while playing, and when you get the error message, grab a screenshot of your console and post here (or copy/paste the console contents)?
I've moved this thread to Javascript/Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.
The console log tells you the error is caused by the YEP_BattleEngineCore plugin - at least that's where it happens; it may well be caused elsewhere and only triggers the issue here.
The easy way to tell if it's a plugin issue or not is to disable all plugins and see if the error still happens. If it doesn't, it's a plugin. Also, you know it's a plugin that's causing the issue, because you said when you remove the plugin command, it works fine.
Unfortunately this is as far as I can help you. I'm not familiar with Yanfly's plugins (or anyone else's), and just don't have the time to delve into them. I'm sure there are lots of people though who do use them and will be able to help you out.
Thank you for explaining that and for what help you could give.
I think the plugin command is actually working fine and there's some sort of conflict between that plugin and the change actor event setting.
I'm trying to find a workaround.
In a lot of cases with battlesystems, the battleplugin sets up extra data on battlestart. adding an actor later (during battle), that actor usually misses that setup - which is why a special summoning plugin for specifically the used battlesystem is often needed.
That is why the actor didn't have a face or sprite when adding it to the battle in the first place, and you'll need to search for a summoning way that is compatible with the battle plugin you're using.
I think I've found a work around. I'm going to keep trouble shooting this.
EDIT: I can't find a fix for this. I've decided to have the ChangePartyMax plugin command activate on a normal event related to the cloning situation. The actor needs to have a certain weapon to be able to clone himself, so I added the plugin command to the event where he obtains the sword. It's not perfect, but it works for now.