- Joined
- Jun 22, 2019
- Messages
- 3
- Reaction score
- 0
- First Language
- enflish
- Primarily Uses
- RMMV
So i am trying to get a skill to give me a state passively once i learn the skill.
This skill is spear mastery.
give 50% increase to all damage when a spear is equipped.
I am using yanfly's AutoPassiveStates plugin.
http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)
Here is what i have.
I havent been able to get any passive state to work so i dont know if its just the plugin that i cant get working.
I havent found much info as of help on the auto states plugin and dont know if im suppose to be changin anything in the plugin parameters or anything.
All help is appreciated. thank you!
This skill is spear mastery.
give 50% increase to all damage when a spear is equipped.
I am using yanfly's AutoPassiveStates plugin.
http://www.yanfly.moe/wiki/Auto_Passive_States_(YEP)
Here is what i have.
The skill
The state
The Code for the state
<Custom Passive Condition>
condition = false;
if ($gameParty.inBattle()) {
if (user.isActor()) {
var swordTypeId = 2;
var weapons = user.weapons();
for (var i = 0; i < weapons.length; ++i) {
var weapon = weapons;
if (weapon && weapon.wtypeId === swordTypeId) {
condition = true;
}
}
}
}
</Custom Passive Condition>
<Custom Confirm Effect>
if (this.isHpEffect() && value > 0) {
var bonus = Math.ceil(value * 2);
value += bonus;
}
</Custom Confirm Effect>
The state
The Code for the state
<Custom Passive Condition>
condition = false;
if ($gameParty.inBattle()) {
if (user.isActor()) {
var swordTypeId = 2;
var weapons = user.weapons();
for (var i = 0; i < weapons.length; ++i) {
var weapon = weapons;
if (weapon && weapon.wtypeId === swordTypeId) {
condition = true;
}
}
}
}
</Custom Passive Condition>
<Custom Confirm Effect>
if (this.isHpEffect() && value > 0) {
var bonus = Math.ceil(value * 2);
value += bonus;
}
</Custom Confirm Effect>
I havent been able to get any passive state to work so i dont know if its just the plugin that i cant get working.
I havent found much info as of help on the auto states plugin and dont know if im suppose to be changin anything in the plugin parameters or anything.
All help is appreciated. thank you!
Last edited:


