How would I go about implementing a last stand skill that is passive on an armor? For example, if all of my party members are dead, except for one, the alive party member would gain an increase to their agility, defense, attack, etc.
I am using Yanfly's Auto Passive States, Buffs States Core, & Equip Core plugins inside of RPG Maker MV.
I currently have a state where my state of 'sole survivor' has a custom condition where if there is only one party member left and all of the others are knocked-out/dead then they would gain an increase to their attack by 200:
Then I would have <Equip State: 16> to my skill, then I would add that skill to the armor:
However when play testing, the buff doesn't seem to activate when I only have 1 party member currently alive in battle? Any idea on how to make this happen/fix this?
I am using Yanfly's Auto Passive States, Buffs States Core, & Equip Core plugins inside of RPG Maker MV.
I currently have a state where my state of 'sole survivor' has a custom condition where if there is only one party member left and all of the others are knocked-out/dead then they would gain an increase to their attack by 200:
<Passive Condition>user.friendsUnit().aliveMembers().length === 1</Passive Condition><Custom Parameter: ATK>value += 200;</Custom Parameter>Then I would have <Equip State: 16> to my skill, then I would add that skill to the armor:
However when play testing, the buff doesn't seem to activate when I only have 1 party member currently alive in battle? Any idea on how to make this happen/fix this?