Help using Buffs & States Core

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
242
Reaction score
27
First Language
korean
Primarily Uses
RMMV
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?
 

HumanNinjaToo

The Cheerful Pessimist
Veteran
Joined
Apr 18, 2013
Messages
1,226
Reaction score
601
First Language
English
Primarily Uses
RMMV
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...
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
242
Reaction score
27
First Language
korean
Primarily Uses
RMMV
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.
 
Last edited:

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,602
Reaction score
1,933
First Language
English
Primarily Uses
RMMV
It's startAnimation, not animation.
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
242
Reaction score
27
First Language
korean
Primarily Uses
RMMV
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
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,602
Reaction score
1,933
First Language
English
Primarily Uses
RMMV
You haven't put in the close curly bracket before else and the open curly bracket after it.
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
242
Reaction score
27
First Language
korean
Primarily Uses
RMMV
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?
 

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
2,602
Reaction score
1,933
First Language
English
Primarily Uses
RMMV
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>
 

Dehsalp

Veteran
Veteran
Joined
Oct 9, 2019
Messages
242
Reaction score
27
First Language
korean
Primarily Uses
RMMV
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
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Part of me is really missin' the good 'ol days of RM '95... goodness just seems like such simpler times
Just got two Switch E-Shop 20$ gift cards... Is 3D All-Stars worth it? Or should I get something like Celeste? I'd love to know your opinion!
I’m looking at the MZ full body images and I think Priscilla is taller than Reid...
Ami
--- Music Selection ---

M.Archer: It's Music Station,You can Change the Music as you like.
F.Healer: i want to hear the Romantic Music.
M.Fighter: Then,i want the Hard-Rock one!
(the Troll Song has played)
M.Archer: Hey,i hear this Music.
F.Healer: It's popular from Internet Music,i wonder who change it?
Hero: I change it.
Entire Party: YOU????

Forum statistics

Threads
103,042
Messages
996,903
Members
134,516
Latest member
Pumpkinnubbin
Top