RPG Maker MZ. So I wrote my own script to change my actors graphic to display off of "_Tools" and switch back to "_Walking" when done. The only problem is I installed Visustella MZ Character Class Change System. Upon doing this my script no longer is working. Before it would switch the graphics for me now it doesn't. Can anyone help?
//Get the Actor ID of the Player
var actorId = $gameVariables.value(34);
//Find the actor with the specified ID
var actor = $gameActors.actor(actorId);
//Add "_tools" to the filename
var newGraphic = (Actor + actorId + "_tools");
//Changes the actor graphic
actor.setCharacterImage(newGraphic, 0);
actor.setFaceImage(newGraphic, 0);
actor.setBattlerImage(newGraphic);
// Refresh the actors appearance
$gamePlayer.refresh();
//Log the Switch
console.log(newGraphic);
So what this does is essentially calls Actor()_Tools.png
//Get the Actor ID of the Player
var actorId = $gameVariables.value(34);
//Find the actor with the specified ID
var actor = $gameActors.actor(actorId);
//Add "_tools" to the filename
var newGraphic = (Actor + actorId + "_tools");
//Changes the actor graphic
actor.setCharacterImage(newGraphic, 0);
actor.setFaceImage(newGraphic, 0);
actor.setBattlerImage(newGraphic);
// Refresh the actors appearance
$gamePlayer.refresh();
//Log the Switch
console.log(newGraphic);
So what this does is essentially calls Actor()_Tools.png