Hi 🙏 this is my first time posting here. I'm trying to do something simple with Yanfly's Auto Passive States plugin but it's not working as intended. The idea is a combat system where the player acts 3 times to make combos with skills, so the enemy has a passive state that makes it unable to act when the "actions remaining" variable is greater than 0 so when it hits 0 the enemy attacks and sets it back to 3. I used the custom passive condition notetag to achieve this as such (and some other ways that also didn't work😅)
<Passive State: 11>
<Custom Passive Condition>
var AR = $gameVariables.value(2);
if (AR > 0) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
But when AR reaches 0 the enemy is still unable to move, so I keep attacking it making AR go to negative values
I'm pretty much a newbie, Please be patient if the fix here is too obvious 😢
<Passive State: 11>
<Custom Passive Condition>
var AR = $gameVariables.value(2);
if (AR > 0) {
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
But when AR reaches 0 the enemy is still unable to move, so I keep attacking it making AR go to negative values
I'm pretty much a newbie, Please be patient if the fix here is too obvious 😢