RPG Maker Forums

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 :)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top