How to make skills have extra effects when the target is inflicted with a certain state

Status
Not open for further replies.

KrimsonKatt

The Endless
Veteran
Joined
Nov 12, 2016
Messages
226
Reaction score
103
First Language
English
Primarily Uses
RMMV
Hello. So right now in my game I have certain skills that have special effects when used against certain enemies. The first example is undead enemies, which I've marked as such with a passive state using Yanfly's passive states plugin. I have two skills called "Smite" and "Purge" which are supposed to instantly kill any enemies that are undead, IE inflicted with the undead passive state with the only difference being that "smite" only targets one enemy while "purge" targets all enemies. While the skills can instantly kill any undead enemies inflicted with the passive state, if used against any other type of enemy the skill will fail. The other examples are skills like "Aerial Slam," "Air Braver," and "Suplex" which are meant to do extra damage against flying enemies, once again indicated with passive state. How do I do these two things? I assume it's done in engine with java, but I don't know java or how MV works with it. Can someone please help me out? Thanks.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
605
Reaction score
257
First Language
english
Primarily Uses
RMMV
damage formula
b.isStateAffected(X) ? formulaA : formulaB
change everything in bold.

for the smite/purge formulaA can be b.die()

 

Dopan

Veteran
Veteran
Joined
Mar 27, 2020
Messages
674
Reaction score
347
First Language
German
Primarily Uses
RMMV
In most Cases , using the Battleformula, like tiamat showed, should do the job..

If you want to make some skills only work under some requirements, or only be shown in some cases, you could also use yeps SkillCore
 

KrimsonKatt

The Endless
Veteran
Joined
Nov 12, 2016
Messages
226
Reaction score
103
First Language
English
Primarily Uses
RMMV
Thanks for the help! It's all fixed now. Thank you so much.
 

slimmmeiske2

Little Red Riding Hood
Global Mod
Joined
Sep 6, 2012
Messages
8,011
Reaction score
5,325
First Language
Dutch
Primarily Uses
RMXP

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

Who would think putting a power button on a side of a laptop is a good thing? You want to move the laptop and you suddenly press the button.
The second draft of my script is almost done, and I don't think I'm going to write a third draft. I'll make changes to dialogue here and there, but I'm happy with the series of events the way they are.
How you feel about font and dialogue box changing for every main character while the minor cast and regular npc get their own styles? Too much?
Just found an obviously custom effect (i.e. edited by me) in my resources>sounds folder called "rip jaw off". Dear Lord what is wrong with me as a person that at some point I needed a sound *specifically* for THAT??
(...rhetorical question.)

Forum statistics

Threads
107,526
Messages
1,030,274
Members
139,652
Latest member
jasasewamobilbali
Top