[VX ACE] Yanfly's ACE Battle Engine and Victor Engine - Element Strengthen Problems

When an element is strengthen from an element boost/amp from Victor Engine - Element Strengthen
Yanfly's ACE Battle Engine will mark it as a weakness.
1624086530474.png




>>> Example: Kouha is strengthen from Bless Boost. <<<
1624086756344.png

1624086827189.png


>>> the skill is connected with the state with Victor Engine - Passive States <<<

1624086954949.png

>> element number 8 is Bless. <<<



1624087197193.png

>>> the enemy will be demonstrated see that it has no bless weakness. <<<



1624087037188.png

1624087099647.png

and Yanfly's ACE Battle Engine checks that it's a weakness.
if anyone knows how to fix this, let me know.
I have to ask. What is element 8? By default it is wind.
And what does the spell Kouha do?
I have to ask. What is element 8? By default it is wind.
And what does the spell Kouha do?
i changed it up a bit, element 8 is bless. And the skill Kouha deals light (small) Bless damage to one foe.
bump.
can someone help me?
Ah, a fellow Persona fan.
From the way I understand it works, Victor's "Element Strengthen" script temporarily changes enemy's element rate. And since in this case Yanfly's "Ace Battle Engine" views enemy's element rate as 125%, it automatically considers it a weakness.

To avoid that, you'll need to open the contents of "Ace Battle Engine" and manually change the rate at which the script will consider something a weakness/resistance. That section is called "make_rate_popup" in the script (line 1332, normally). Instead of explaining the proccess of editing itself, I'll just post what I believe to be the optimal change in this case (you can copy/paste it into the script in your project to apply changes):

Code:
  def make_rate_popup(rate)
    return if rate == 1.0
    flags = []
    if rate > 1.6
      text = YEA::BATTLE::POPUP_SETTINGS[:weakpoint]
      rules = "WEAK_ELE"
      flags.push("weakness")
    elsif rate == 0.0
      text = YEA::BATTLE::POPUP_SETTINGS[:immune]
      rules = "IMMU_ELE"
      flags.push("immune")
    elsif rate < 0.0
      text = YEA::BATTLE::POPUP_SETTINGS[:absorbed]
      rules = "ABSB_ELE"
      flags.push("absorbed")
    elsif rate > 0.0 && rate < 1.0
      text = YEA::BATTLE::POPUP_SETTINGS[:resistant]
      rules = "REST_ELE"
      flags.push("resistant")
    end
    create_popup(text, rules, flags)
  end

With these changes, the "weakness" popup is triggered ONLY if enemy's element rate is 160% or above (which should be enough for Persona; iirc the strongest element amplifier there has a 50% boost). "Resist" popup, on the other hand, will appear if enemy's element rate is below 100%. You change that by editing the part above "[resistant]". (f.e. if you want the popup to be triggered at below 50%, you can change it to "rate < 0.5")

---
Not sure if this can be considered "necro-posting", since I'm technically answering the question, but I decided to register an account and post this message in case someone gets the same problem in the future.
Yes, this is necroposting. Thanks for helping, but going forward, please only respond to Support threads that are still active (have been posted in in the last 30 days).

Original thread: https://forums.rpgmakerweb.com/threads/vx-ace-yanflys-ace-battle-engine-and-victor-engine-element-strengthen-problems.137596/