RPG Maker Forums

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,049
Messages
1,018,547
Members
137,835
Latest member
yetisteven
Top