Harmonic Passives

Lucresia

Villager
Member
Joined
Jul 27, 2019
Messages
11
Reaction score
3
First Language
English
Primarily Uses
RMMV
I'm just wondering, is it possible to make harmonic Passives with Yanfly's plugins? I know you can make a harmonic black magic passive, but I need something that would raise resistance to certain elements, or raise agility/def etc...

Basically if you're confused on what I mean by harmonic, I mean a passive aura (affects all allies or enemies) that gains strength when allies have the same passive.

For example, what I'm really trying to do is make an enemy called the Occulus, who is extremely weak to physical damage, have a passive ability that does this-

1 Occulus in battle= it takes 100% physical damage

2 Occulus in battle= they both take 50% physical damage

3 Occulus in battle= they all take 25% physical damage

4+ Occulus in battle= they all take 20% physical damage

(With only 1 Def, this wouldn't make them indestructible, but make them far more useable support/mage type enemies)

Any help is greatly appreciated, I've been searching everywhere for a solution and experimenting with the code for the harmonic black magic (which is formally called Black resonance) script, but am having no luck... Here's the unmodified black resonance script for reference too



<Custom Confirm Effect>
if (this.isSkill() && this.isMagical() && this.isHpEffect() && value > 0) {
var skillTypes = [];
skillTypes.push(16, 17, 18, 19, 20, 21, 22, 23, 24, 25);
if (skillTypes.contains(this.item().stypeId)) {
var count = 0;
var allies = user.friendsUnit().aliveMembers();
while (allies.length > 0) {
ally = allies.shift();
if (ally && ally.isStateAffected(stateId) && ally !== user) {
count += 1;
}
}
if (count <= 0) {
var multiplier = 1.00;
} else if (count === 1) {
var multiplier = 1.10
} else if (count === 2) {
var multiplier = 1.15;
} else {
var multiplier = 1.20;
}
value *= multiplier;
value = Math.ceil(value);
}
}
</Custom Confirm Effect>



If it is possible to make these harmonic states, is it also possible to cause them to trigger an additional state when the harmonic variable is maxed out? I.e 4+ Occulus in battle also all gain the same additional passive State that causes them to take 10% light damage (usual weakness) as well as absorb darkness vs blocking it, that part I know how to do it's just a matter of how to make everything relate... Thank you to anyone who wants to help or spend time on this, hopefully I'm not asking a simple question that I'm just too new to coding to fix
 

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

Latest Threads

Latest Posts

Latest Profile Posts

I was planning to release a useless plugin for april fools, but then I thought I let it be.
Tfw every dev around me is using Live2D in their MV games and make me question my skills repeatedly.

Spending the day reworking my maps, especially the first "biome". This time it's not even in the dark. :LZSwink:
Activity on the forums has increased lately, probably because of people staying home. The amount of work for moderators has increased lol.
At this point I've gotten so tired of April Fools on the internet that last year I just refused to even post anything on the RMW Social Media on April Fools in protest. Considering doing it again.

Forum statistics

Threads
95,521
Messages
929,779
Members
125,787
Latest member
PollyS
Top