Issue with attack conditions with latest version of VX Ace.

I am having an issue with attack conditions ever since buying and downloading the latest version of RPG Maker VX Ace.

Capture.JPG

Every time I specify HP conditions for an attack, RPG Maker VX Ace always either zeros the conditions out or puts a ridiculously weird number in place of it.

If I set any HP condition that does not start with 0, like this
Capture 2.JPG

RPG Maker always zeros out the starting number and puts a weird ending number as you see in the first screenshot. It does not matter what the starting and ending number is, as long as it is NOT 0, RPG Maker automatically zeros out the first number and puts a weird impossible number as the ending number.

For conditions starting with zero: Capture 3.JPG

RPG Maker zeros out the whole thing and the attack is NEVER used!

This is the same with previous enemies that had ranges already set.

You can see in the first screenshot, it says 0% to 0% despite the fact that I have it set to 0% to 50%.

Closing and reopening RPG Maker VX Ace does NOT fix the issue and this is a problem on ALL attacks with HP conditions.


This was NOT an issue with the older version that I was using. This became a problem when I bought the latest version from the official website.

The latest version broke attack conditions completely.


Does anybody know what the problem could be and how do I fix this?
That's always been an issue, but it runs it as you enter it for me and not as it shows. Sadly I don't see them fixing it as it is a legacy engine.
As far as I remember that was a display bug in the editor only, and all skills worked as intended in all games.

Are you sure that it is the condition that prevents the skill from being used, and not an additional problem elsewhere?

And which version exactly are you using? (version number, steam or non-steam version)
It is not the steam version.

Where can I find the version information?

I have not done a real whole lot of testing with the conditions, I will have to get back with you on that. I just noticed I went several minutes without a boss using the move after I noticed the error in the attacks editor.
Set to 3 is very low priority too, which will also factor in. And it does still have to pay the skill cost, if they can't they will skip it.
Where can I find the version information?
in the editor, help/about or so in the menu (don't have it installed to check) should open a window containing the version number

How the rates work on attack patterns:

The highest number with conditions fulfilled becomes the main number - 5 in this case
Then all numbers more than two distant will have their skills removed - 5 base means 1 and 2 get removed

This leaves one skill with 5 and two skills with 3

The weight will be 3 for the highest number, 2 for the middle and 1 for the lowest.

Which calculates to 60% chance for Attack and 20% chance for each of the two other skills
And that is per turn, no matter how long a turn needs.


Can you give a skill screenshot so that we can check other possible causes?
Have you added any scripts?
Are you using battletest in the database or testing ingame? As soon as you add scripts the database test becomes unreliable because it skips game initialisation (and thereby part of scripts)
Every time I specify HP conditions for an attack, RPG Maker VX Ace always either zeros the conditions out or puts a ridiculously weird number in place of it.
I get the same thing. Never tried using a specific range.
But in a quick test it looks like it works fine.

here is a console output of the skill with a range like you have
Ruby:
[#<RPG::Enemy::Action:0x5515e64 @condition_type=0, @rating=5, @skill_id=1,
@condition_param2=0, @condition_param1=0>,

#<RPG::Enemy::Action:0x5515a90 @condition_type=2, @rating=3, @skill_id=92,
@condition_param2=0.2, @condition_param1=0>,

#<RPG::Enemy::Action:0x5515888 @condition_type=2, @rating=3, @skill_id=124,
@condition_param2=0.3, @condition_param1=0.1>]
Notice the third one has param1 as 0.1 and param2 as 0.3
1683684774862.png
1683684790915.png
Here you can find the information on the version of the maker you're using now.

Help About ACE Cropped.jpg

​
OK, I double checked what Game_Enemy does to calculate the HP condition. In line 201 you will find something like the following there:

Ruby:
  def conditions_met_hp?(param1, param2)
    puts "HP Condition", [@hp, mhp, hp_rate, param1, param2].join(", ")
    hp_rate >= param1 && hp_rate <= param2
  end

Forget about the line of code where you can find the puts command in use. It's not important.

I checked the hp_rate method and it calculates the condition like this:

Ruby:
@hp.to_f / mhp

So at the very beginning of the battle all of my gazers would have some 1.0 HP Rate. That's normal.
My condition was that it should use a skill if an enemy's HP went below 50% or an 0.5 HP rate. Once again that's pretty much how it should be.
If the boss is not using a move, could it be because you have assigned an MP cost to the skill, and the boss no longer has any MP left?

If you want enemies to continually use their skills, always give them a 0 MP cost.

Original thread: https://forums.rpgmakerweb.com/threads/issue-with-attack-conditions-with-latest-version-of-vx-ace.157386/