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

@wrigty12 hi! thanks for showing interest in my work. Sadly the tablet I'm using broke, so I wasn't able to create anything for weeks. Got a new one with display, I'm still not used to it though, so I'm still practicing, doing basic drawings again. Also I'm in my last year of college. Thesis, projects and other activities takes most of my time ;_;.
I'll get back to it whenever I get a free time.
Any artists here planning on participating in the Inktober art prompts this October?
It's right around the corner.
It's rpg maker related so I'll post it here, I worked on a little free rpg maker zine and this was my piece. Play Grimm's Hollow if you haven't already, I liked it a lot. (i don't remember if posting a link to a product even if free is allowed via profile posts, so if anyone knows lemme know)

Suddenly arrived to work and got the pink slip on a contract O_O wait, did i forget something??? (sobbing in corner rn)

Forum statistics

Threads
103,024
Messages
996,747
Members
134,496
Latest member
MVMS
Top