Help using Buffs & States Core

Hi !

I was making enemy, has highly armor.

thist enemy has this script code in note.

<Custom React Effect>
value = Math.min(value, 100);
</Custom React Effect>

So it can't over 100 or more damage if attack this enemy.

This is the main subject I want to find.

When attacking this enemy, I want to bring up an animation when the damage is 0 and when the damage is 1 or more.


so.

target.startAnimation(174);

Using this script and the script in Buffs & States Core seems to work, but it doesn't work.

Can you help me?
I think this should be able to be handled with an conditional statement

if (value < 1); {
target.animation(174);
else
target.animation(X);
end
}
You may need to double check my syntax, I'm at work right now and trying to hurry...
I think this should be able to be handled with an conditional statement

if (value < 1); {
target.animation(174);
else
target.animation(X);
end
}
You may need to double check my syntax, I'm at work right now and trying to hurry...

Sorry for the late confirmation.
I'll try using it right now.

<Custom React Effect>
value = Math.min(value, 100);
if (value < 1); {
target.animation(174);
else
target.animation(X);
end
}
</Custom React Effect>

Can I use it like this?


+edit)
Ah, it doesn't work like this.
It's startAnimation, not animation.
It's startAnimation, not animation.

<Custom React Effect>
value = Math.min(value, 100);
if (value < 1); {
target.startAnimation(209);
else
target.startAnimation(210);
end
}
</Custom React Effect>

like this?

not working yet... ㅜ.ㅜ


+edit)

FFFFFFF.png
You haven't put in the close curly bracket before else and the open curly bracket after it.
You haven't put in the close curly bracket before else and the open curly bracket after it.

<Custom React Effect>
value = Math.min(value, 100);
if (value < 1); {
target.startAnimation(209);
} else; {
target.startAnimation(210);
end
}
</Custom React Effect>


um... like this?
Take out the semicolons after if (value < 1) and else and the "end" and that should do it.

Code:
<Custom React Effect>
value = Math.min(value, 100);
if (value < 1) {
  target.startAnimation(209);
} else {
  target.startAnimation(210);
}
</Custom React Effect>
Take out the semicolons after if (value < 1) and else and the "end" and that should do it.

Code:
<Custom React Effect>
value = Math.min(value, 100);
if (value < 1) {
  target.startAnimation(209);
} else {
  target.startAnimation(210);
}
</Custom React Effect>


FFFFFFF.png


<Custom React Effect>
value = Math.min(value, 100);
if (value < 1) {
target.startAnimation(209);
} else {
target.startAnimation(210);
end
}
</Custom React Effect>
I tried
remove "end"
remove "end"

thx it working well !

Original thread: https://forums.rpgmakerweb.com/threads/help-using-buffs-states-core.124872/