For an enemy boss, the idea is that the boss has a counter that stuns the character who hit them infinitely. However, if another character were to hit the boss, the boss would remove the stun from the previous character (or all characters with that unique stun), and apply the infinite stun to the new character.
For context, the stun will kill the character affected after it decays (So infinite in the sense it will last until they die). And decay in the terms (Let expire, not removed)
I probably have implemented and used plugins wrong, and I have not gotten much of it to work. Below is my current progress and the work I have done so far. After, is the results of my work.
(The attempted adding of stun (Victim is the name of the stun) and removal of other "Victim" stuns.)
(The attempt at making the infinite stun)
The custom leave effect for the kill after decay is: (taken from a Doom state created by Yanfly)
<Custom Leave Effect>
// Get the death state for the user.
var deathState = user.deathStateId();
// Check if the user is not immune to death nor resistant to it.
if (user.stateRate(deathState) > 0.01 && !user.isStateResist(deathState)) {
// Play animation on the user.
user.startAnimation(65);
// Set the user's HP to 0.
user.setHp(0);
// Check if the user is dead.
if (user.isDead()) {
// Make the user collapse.
user.performCollapse();
}
}
</Custom Leave Effect>
The boss is supposed to be able to counter infinitely and with a guaranteed chance given the high values. Its default counter is the removal and addition of the stun (Stare)
In conclusion, what I am struggling with is that the removal of the stuns is non-existent, and the character does not die when the stun expires. What works is that it will counter with the stun. What ends up happening is that everyone is getting stunned for 1 turn if they attack, and no one dies to decay.
Will try to provide additional screenshots and info if needed!
For context, the stun will kill the character affected after it decays (So infinite in the sense it will last until they die). And decay in the terms (Let expire, not removed)
I probably have implemented and used plugins wrong, and I have not gotten much of it to work. Below is my current progress and the work I have done so far. After, is the results of my work.
(The attempted adding of stun (Victim is the name of the stun) and removal of other "Victim" stuns.)
(The attempt at making the infinite stun)
The custom leave effect for the kill after decay is: (taken from a Doom state created by Yanfly)
<Custom Leave Effect>
// Get the death state for the user.
var deathState = user.deathStateId();
// Check if the user is not immune to death nor resistant to it.
if (user.stateRate(deathState) > 0.01 && !user.isStateResist(deathState)) {
// Play animation on the user.
user.startAnimation(65);
// Set the user's HP to 0.
user.setHp(0);
// Check if the user is dead.
if (user.isDead()) {
// Make the user collapse.
user.performCollapse();
}
}
</Custom Leave Effect>
The boss is supposed to be able to counter infinitely and with a guaranteed chance given the high values. Its default counter is the removal and addition of the stun (Stare)
In conclusion, what I am struggling with is that the removal of the stuns is non-existent, and the character does not die when the stun expires. What works is that it will counter with the stun. What ends up happening is that everyone is getting stunned for 1 turn if they attack, and no one dies to decay.
Will try to provide additional screenshots and info if needed!