I'm currently using the "WAY Custom Image Face Eval" plugin.
This allows me to change an actor's face image depending on certain conditions, such as HP, or status conditions.
I would like to use a switch as a conditional branch of sorts. (if Switch 1 is on then Actor face image is such and such)
I'm not familiar with advanced coding however. So I'm unsure what I'm supposed to write in the actor note tag. There is no example given for referencing switches like there was with HP, and status conditions.
If anyone can help I'd appreciate it. Thanks!
This allows me to change an actor's face image depending on certain conditions, such as HP, or status conditions.
Code:
if (user.hp / user.mhp <= 0) {
faceName = 'Actor1';
faceIndex = 0;
} else if (user.hp / user.mhp <= 0.5) {
faceName = 'Actor1';
faceIndex = 1;
} else if (user.hp / user.mhp <= 1) {
faceName = 'Actor1';
faceIndex = 2;}
if (user.isStateAffected(42)) {
faceName = 'Nature';
faceIndex = 2;
}
</Custom Face Image Eval>
I would like to use a switch as a conditional branch of sorts. (if Switch 1 is on then Actor face image is such and such)
Also you can use shortcuts for referencing switches, variables and
the game party. Instead of using $gameSwitches, $gameVariables and $gameParty,
you can just use s, v, and p.
the game party. Instead of using $gameSwitches, $gameVariables and $gameParty,
you can just use s, v, and p.
If anyone can help I'd appreciate it. Thanks!