Multitarget ability to hit only once vs a single enemy.

tzamis

Villager
Member
Joined
Nov 28, 2017
Messages
21
Reaction score
4
First Language
Greek
Primarily Uses
RMMV
Hello fellow RPG Makers.

I'm pretty new in the world of RPG Maker MV, messing around with all its possibilites and love the freedom it provides when paired with all the plugins out there. As the title states I have made an ability that hits two random enemies. My problem is that when my party is against a single enemy, this particular ability hits twice and therefore becomes quite powerful. Is there any way to make it hit only once when the opposed troop is consisted of a single enemy?

I've looked around for any related plugins/solutions and tried to find similar topics but to no avail. Am I missing something too obvious or nobody ever cared for such a modification so far?

Thanks in advance!
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
6,114
Reaction score
5,870
First Language
English
Primarily Uses
RMVXA
I made a script for VX Ace which does precisely what you're hoping for, but unfortunately I'm not aware of any such plugin for MV.

The quickest, dirtiest way to handle this without a new plugin would be to apply a State (which does nothing, and lasts just 1 turn) as part of the skill effect, and check in the Formula for that skill to see if this state is on the battler, and do 0 damage instead of the normal formula if they have that state. There are a couple drawbacks with this approach (you can't guarantee 2 different targets will be hit if there are 2 enemy battlers; you also will run into problems if multiple actors can use the same skill, though this latter problem could be removed by running a Common Event at the end of the skill to remove the state from all battlers), but it's basically the only way you can do it without either plugins or coding.

Yanfly's "Target Core" script may help you accomplish what you're looking for, but it will require you to use some 'Lunatic Mode' pseudo-code notetags to make it work, so if you've never written a word of JavaScript before, this isn't the solution to try right now.

One final option is to go to the "Plugin Request" subforum and make a Plugin Request there, explaining what you need and giving examples of what should happen in different scenarios. Be sure to read and follow the Plugin Requests rules. I do think there's a decent chance someone will be willing to make this plugin, as - like you said - it would be very useful to the larger community and not just to you.
 

tzamis

Villager
Member
Joined
Nov 28, 2017
Messages
21
Reaction score
4
First Language
Greek
Primarily Uses
RMMV
Thanks for taking the time to response Wavelength.

It's true that the non-coding way doesn't feel satisfying enough.

I've stumbled upon Yanfly's "Target Core" before and, indeed, it requires proper JS coding in order to achieve the desired effect. Unfortunately I've never written a single word in JavaScript. I have done some programming in C during a course of my undergraduate studies, but that's several years ago. On the other hand, I'd love to get more involved in scripting stuff in RMMV with JS when needed. The main problem is that when I take a look at some system files, or plugins made by other users, I get quite confused and lost. On the contrary, the beginners lessons posted here on the forums feel more novice-oriented than I would like them to be and I get bored pretty fast :/ . I guess I just have to endure the early lessons if I wanna go down this way eventually.

I guess I'll wait and see if someone else may come up with an alternative idea/info and if not, I'll move to the Plugin Requests subforum. Thanks again!
 

Latest Threads

Latest Profile Posts

Sniffing the enemy is important.
67lsfpj.gif
angel3.gif
Angels sprite redo came out so cute! I had to add hair so her sprite matches the new faceart :LZSexcite:
Even if you made 1% progress today in your making-game, that's 100% success!
This is Ralph from VX!
index.php

Forum statistics

Threads
121,858
Messages
1,144,711
Members
160,114
Latest member
Henri3600
Top