@Moon_Haven
The way MV is designed, Common Events cannot run while the menu is open, they only run after the menu is closed.
That's what I feared... I will have to go with the route of only updating the sprite temporarily until I run the Event when we exit the menu.
Would you be so kind to give me some guidance on the proper code logic that I should use with your plugin?
I want to change the character face depending on two pieces of equipment: hat and body armor.
Let's say I have 9 hats and 9 body armor.
I have made the 100 sprites (combo of 9 hats with each piece of body armor, plus a version without hat or a body armor).
Here's what I was thinking:
3 variables:
1: holds the hat ID
2: holds the body armor ID
3: holds the combo of the hat ID and body ID, (27 for instance would be hat 2 and body 7)
Example: for Hat1
Code:
<Custom On Equip Eval>
// Set hat
$gameVariable.setValue(1, 1);
var temp1 = 1;
// Get Body armor currently worn
var temp2 = $gameVariables.value(2) * 10;
// Calculate hat/body combo
var temp3 = (temp1 * 10) + temp2;
// Set sprite
user.setFaceImage(temp3, 0);
user.refresh();
</Custom On Equip Eval>
I think the above could potentially work, except in the instance when the player decides to remove the hat or the armor, and go naked... and this is where I think I'm stuck.