Actor running help. (Solved)

Hi, I was trying to make a common event were when running the actor's character changes momentarily to enhance the dynamic of the project, however the script doesn't work, but doesn't give an error message either.
1000017632.png
From the MV / MZ Script Call List (Set Actor Map Character, row ~477):
actor.setCharacterImage(filename, index);
$gamePlayer.refresh();
So your script call should be:
JavaScript:
$gameActors.actor(1).setCharacterImage('&actor1', 0);
$gamePlayer.refresh();
A couple of other notes:
  1. MZ makes HTML games, so all filenames should conform to network standards. & is a reserved character for URLs, so the filename &actor1.png may cause unexpected results in-game.

  2. Don't write integers with zeroes in front. I.e. use 1, not 0001. Why? Because in JavaScript, leading zeroes indicate an octal value. E.g. 0010 is another way of writing the decimal number 8, and 0009 is just invalid. (Also, 1 is quicker to write than 0001.)
From the MV / MZ Script Call List (Set Actor Map Character, row ~477):

So your script call should be:
JavaScript:
$gameActors.actor(1).setCharacterImage('&actor1', 0);
$gamePlayer.refresh();
A couple of other notes:
  1. MZ makes HTML games, so all filenames should conform to network standards. & is a reserved character for URLs, so the filename &actor1.png may cause unexpected results in-game.

  2. Don't write integers with zeroes in front. I.e. use 1, not 0001. Why? Because in JavaScript, leading zeroes indicate an octal value. E.g. 0010 is another way of writing the decimal number 8, and 0009 is just invalid. (Also, 1 is quicker to write than 0001.)
Thank you~ ^^/
I always feel like a 6 year old struggling to fit a cube in the square hole when asking for help :,)

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

Original thread: https://forums.rpgmakerweb.com/threads/actor-running-help-solved.176811/