So I just asked a question yesterday (and it was answered and I am still so happy about it!), but I am terrible at JS. I'm hoping someone could help me with this one too.
Basically I am attempting to activate a Passive State when the actor has a certain armor and weapon type equipped. Essentially a set bonus. I haven't been able to find a plugin to do this for me (most are not compatible with Yanfly's Equip Core, which I am using for random pre/suffixes). So what I am trying to accomplish is:
- If actor has weapon type 1 equipped, and armor type 1 equipped, add state 15
- If actor has weapon type 2 equipped, and armor type 2 equipped, add state 15
- If actor has weapon type 3 equipped, and armor type 3 equipped, add state 15
- If actor has weapon type 4 equipped, and armor type 4 equipped, add state 15
I tried doing this with a common event, but it didn't work. So now I am trying to do it with
Yanfly's Auto Passive States but I can't get the custom conditional to work.
Right now, this is the notetag for the "BONUS" state:
<Custom Passive Condition>
if ($gameActors.actor(1).isWtypeEquipped(1))
{
condition = true;
} else {
condition = false;
}
</Custom Passive Condition>
1. This doesn't work
2. If we can get it to work, how would I add "
and armor type (1) equipped"?
Thanks for any help you might have
