I'm just getting started with scripting. Before now, I've only copy/pasted little bits of code that were proven to work.
But today, I decided that I would attempt my only little tiny script, referencing the RMMZ script call spreadsheet found on this forum. What I'd like to try to accomplish is to change the actor faces during battle so they look... well.. like they're in battle. Then use a common to check when they're not in battle, and switch the face back to whatever their face was before.
Problem is... it doesn't seem to be reading whatever I write into the script box... at all 😳 I wrote, to the best of my knowledge... $gameActors.actor(4).setFaceImage with the filename and index number. Then followed up with $gamePlayer.refresh() and got no response. Not even an error.
So I wrote a call from MV into the script box just to see if I could make it crash (which would let me know if it read it or not): $gameActors.actor(2).startAnimation(25, 0, 0) No response, error, crash, or anything. Before I learned MZ has a different script call format, this code would crash the game as soon as it reached that command in the event.
I'm running the script on a single Troop event for testing, and it's the first command in the event, followed by a few things that grants full TP and a few skills. All of that works. Just not the script. The conditions are Turn: 0 (so as soon as battle begins)
But today, I decided that I would attempt my only little tiny script, referencing the RMMZ script call spreadsheet found on this forum. What I'd like to try to accomplish is to change the actor faces during battle so they look... well.. like they're in battle. Then use a common to check when they're not in battle, and switch the face back to whatever their face was before.
Problem is... it doesn't seem to be reading whatever I write into the script box... at all 😳 I wrote, to the best of my knowledge... $gameActors.actor(4).setFaceImage with the filename and index number. Then followed up with $gamePlayer.refresh() and got no response. Not even an error.
So I wrote a call from MV into the script box just to see if I could make it crash (which would let me know if it read it or not): $gameActors.actor(2).startAnimation(25, 0, 0) No response, error, crash, or anything. Before I learned MZ has a different script call format, this code would crash the game as soon as it reached that command in the event.
I'm running the script on a single Troop event for testing, and it's the first command in the event, followed by a few things that grants full TP and a few skills. All of that works. Just not the script. The conditions are Turn: 0 (so as soon as battle begins)