However, those brackets quite literally do nothing at all.
5 and
(5) are 100% equivalent in every way.
Now, I'm not sure whether I'm missing something here, or everyone else is missing something here. Why are all the code samples comparing the actor ID to a constant? Doesn't it make more sense to do something else with the actor ID? Or even don't bother with the actor ID and just get the actor and grab some data from it?
JavaScript:
let whichPictureId = 1; // Change this value if needed.
if(BattleManager.actor() && BattleManager.actor().isInputting()) {
let actorData = BattleManager.actor().actor(); // Yes, you need actor() twice.
let facePic = actorData.meta.battleFacePic;
let origin = 0, x = 0, y = 0, scaleX = 1, scaleY = 1, opacity = 255, blendMode = 0; // Change these values
$gameScreen.showPicture(whichPictureId, facePic, origin, x, y, scaleX, scaleY, opacity, blendMode);
} else {
$gameScreen.erasePicture(whichPictureId);
}
Then you can place a
<battleFacePic:SomePictureName> note tag in the actor's note box and it should theoretically all work. The only complication would be where that code is placed. I think it might have to be in a parallel common event? Those do run in battle, right? Maybe it also works in a troop event bound to a switch that is always on. Presumably, it would also work if you aliased
BattleManager.update in a plugin and put the code there.
Not sure if i did this incorrectly, but i attached screenshots below.
I added the note tag to the actor, and tried it with a common event, i also removed the other party members to see if the test image would show up, and unfortunately it didn't show up on screen, but the battle paused for a slight moment before the battle commands appeared, like something else was running in during it.
I didn't see the picture with the common event, so i don't think they run during battle, tried an new common event that just messages text on screen linked to the switch i used above before the battle started- and the message didn't appear until post battle.
Tried to use the troop event as well, but wasn't able to get it to work.