Problems with Setting Attack Conditions (And SkillSet Script) [VX Ace] (Potential Bug?)

Hi, so this is probably going to be one of the most depressing things you help fix, but I'm still new and may be overlooking something.

So I am working through these: [http://www.rpgmakerweb.com/support/products/tutorials] tutorials and am currently working on the boss fight. The problem is.... well... take a look at the values here:

If you notice, I have it set to use "Aura" from 0-25% HP, however it is registering that as 0-0% HP. Also, in practice that is how it's behaving too. I shouldn't need to tell you what problems are arising from that. In addition, if I set the "Low" value to anything greater than 0, it sets the second value to 127836219378651297834% (Not the EXACT number, but that is roughly what appears).

[Ex. 1-157268512% HP]

Would anybody happen to know what is causing these issues and any potential fixes?

Also, another problem I am facing is with the "SelfSkillEffects" script within those tutorials. When I add it, I get back an error on Line 37, and now I'm not the best with Ruby so I couldn't see any syntax errors, but it looked fine from another language at first. The script is:

class RPG::Skill

  

  def self_effects

    if @self_effects.nil?

      @self_effects = []

      self.note.each_line {|a|

        scan = a.scan(/<self[ ]*effect[ ]*\:[ ]*(\d+(?:[ ]*,[ ]*\d+)*)>/i)

        scan[0][0].scan(/\d+/).each {|b| 

          @self_effects.push(@effects[b.to_i - 1]) if b.to_i >= 1

        }

      }

    end

    @self_effects

  end

end

 

class Game_Battler

  

  alias jet3745_item_effect_apply item_effect_apply

  def item_effect_apply(user, item, effect, reffed = false)

    if item.is_a?(RPG::Skill) && item.self_effects.include?(effect) && !reffed

      user.item_effect_apply(user, item, effect, true)

      return

    end

    jet3745_item_effect_apply(user, item, effect)

  end

end

 

The problem is that it causes problem when any form of Damage Value appears (Player or Enemy takes damage), does not even have to be an attack that uses it. Anybody know what the problem is and any potential side-routes or fixes?
unfortunately, the attachment picture with the settings doidn't make it into the post, so we can give only limited help.


The problem with the %-numbers is only a display problem in the editor, the numbers work correctly in the game. If your skills don't work when the conditions are fulfilled, then there has to be another problem.


Best guess (without seeing that screenshot) is that you've miscalculated how the ratings work - that is most often the case, because those values aren't directly checked.


Make the rating value for the skill with the condition to check 3 numbers higher than any other attack rating. If you do this, then the enemy can only use that specific skill as soon as the conditions are fulfilled (read the hint on rating numbers to see the details, but basically the engine looks for the allowed skill (after conditions) with the highest rating, and randomly selects skills only from that rating and up to two points below that rating. Anything three or more points below the top rating will be ignored.


The self-skill script has a bug - search the forum for it, someone posted a corrected version of the script somewhere, but I don't have the link ready. you need that corrected version to make that tutorial work...
That green text is really hard to read. Best way to help others help you, is to not try and make your post "pretty" with colours and fonts 🙂


Also, please post a link to the script you're using, so we don't have to go searching for it. And one question per thread, as one's to do with the database, and the other is a script issue, and they should be posted in separate forums. Unless you believe the skill issue is BECAUSE of the script.

Original thread: https://forums.rpgmakerweb.com/threads/problems-with-setting-attack-conditions-and-skillset-script-vx-ace-potential-bug.24515/