Here is what I am trying to do:
1. Skeleton enemy has a passive "brittle" state (stateId = 11).
2. When a character uses a blunt weapon (such as Crude Sword, weaponId = 1), I want the skeleton to have a 50% chance to "shatter".
3. In a happy world, "shatter" would be a conditionally activated skill that adds Knockout state after a "shatter" animation if the enemy is "brittle". I thought I could maybe accomplish this using something like Yanfly's Weapon Unleash
<Custom Weapon Unleash: 0014>
if (b.isStateAffected(11)){
rate = 100;
}
</Custom Weapon Unleash: 0014>
However, that doesn't take into account something like a specific target's state (it seems to only eval users since I believe all of these rates are determined ahead of battle).
Any ideas on how I could best accomplish this, possibly outside of the plugin?
Thanks in advance!
1. Skeleton enemy has a passive "brittle" state (stateId = 11).
2. When a character uses a blunt weapon (such as Crude Sword, weaponId = 1), I want the skeleton to have a 50% chance to "shatter".
3. In a happy world, "shatter" would be a conditionally activated skill that adds Knockout state after a "shatter" animation if the enemy is "brittle". I thought I could maybe accomplish this using something like Yanfly's Weapon Unleash
<Custom Weapon Unleash: 0014>
if (b.isStateAffected(11)){
rate = 100;
}
</Custom Weapon Unleash: 0014>
However, that doesn't take into account something like a specific target's state (it seems to only eval users since I believe all of these rates are determined ahead of battle).
Any ideas on how I could best accomplish this, possibly outside of the plugin?
Thanks in advance!