Hi, just a quick question: I'm looking for the term that checks if a target is an ally/friendly unit. I'm aware of ".isEnemy()" which checks if the target is hostile, but I need the opposite of that. Thx!
MV Opposite of "isEnemy()"?
Javascript/Plugin SupportHello, you're looking for isActor()
You can also invert logical statements with a !
So you can say !(A.isenemy())
So you can say !(A.isenemy())
Omg, it's all so obvious now that I think about it! Lol, thx!
So just to make sure, would the following check if my target is an Actor and check if a Heal was made?
So just to make sure, would the following check if my target is an Actor and check if a Heal was made?
if (target.isActor() && target.result().hpDamage < 0)Original thread: https://forums.rpgmakerweb.com/threads/opposite-of-isenemy.138329/