Status
Not open for further replies.

KrimsonKatt

The Endless
Veteran
Joined
Nov 12, 2016
Messages
264
Reaction score
157
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
658
Reaction score
283
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
795
Reaction score
409
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
264
Reaction score
157
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,148
Reaction score
5,380
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

Anybody know how to make an enemy have a line of sight? I'm trying to make Persona-like enemies.
zomboars.jpg

Concept art

Zomboars- main enemies in my story
mutant pigs addicted to beer
SF_People1_3 added!
index.php

I haven't been on here in forever wow(missed my forum birthday T-T). Anyways, I'm dabbling in BGMs, here's something I'm actually willing to share.

Forum statistics

Threads
109,203
Messages
1,043,018
Members
141,711
Latest member
DamonAngel04
Top