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,887
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 Posts

Latest Profile Posts

For some reason a vegan webpage was suggested for me on FB. So I thought let's troll them. Because some of the posters needed a reality check.
I intended to start losing some weight starting today but It's apparently my birthday and I was given 2 big Toblerone's. So....Tomorrow then :p
JR.png
design for 1920's Jazz-singer
(can you guess what character inspired me here? xD )
Another brief AD video. Pretty proud of this.
new to game making and open to any help on getting started

Forum statistics

Threads
129,823
Messages
1,205,532
Members
170,950
Latest member
siko87
Top