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
112
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
623
Reaction score
267
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
692
Reaction score
353
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
112
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,030
Reaction score
5,333
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.

Latest Threads

Latest Profile Posts

"Man is made by his belief. As he believes, so he is."-Krishna
FastFood in my country is neither fast nor cheap like it's expected to be, but people still buy a lot of it. I don't want to imagine how much of it people would eat if it was.
Started finishing up my bosses and characters...I don't know how long...but its going to take long...

I ended up needing to do a chapter one world map remake. It's still WIP but coming along nicely. =D
Stream will be live shortly! I will be beginning a play-through of Resident Evil 4! Feel free to drop by!

Forum statistics

Threads
107,753
Messages
1,031,900
Members
139,898
Latest member
Karuu
Top