Hang on. I have to draw it to have some visualizations
In short...
e.g
Bob has ability "Fear" and he is using it on Goblin
When Goblin is affected with Fear, Goblin still can attack anyone except Bob as long Goblin is under "Fear"
Try with this
explanation:
&& means AND
target.isEnemy() - checks if target is your enemy (returns true)
target != this - checks if target is not an actor num 1 in DB (I gave him fear skill)
this.isStateAffected(49) - checks if you are ander fear state
Correct me if I screw up this code - I'm pretty tired...
In short...
e.g
Bob has ability "Fear" and he is using it on Goblin
When Goblin is affected with Fear, Goblin still can attack anyone except Bob as long Goblin is under "Fear"
Try with this
Code:
<Select Conditions>
var caster = $gameActors.actor(1)
condition = (target.isEnemy() && target != caster || this.isStateAffected(49));
</Select Conditions>
explanation:
&& means AND
target.isEnemy() - checks if target is your enemy (returns true)
target != this - checks if target is not an actor num 1 in DB (I gave him fear skill)
this.isStateAffected(49) - checks if you are ander fear state
Correct me if I screw up this code - I'm pretty tired...