Problem with battle mechanics.

Started by Kise, July 08, 2017, 10:44:27 am

Previous topic - Next topic

Kise

Hello. I have a problem with default battle mechanics - sometimes after enemy casts a spell which costs 100% of it's SP, just stands without doing anything next few turns. The only actions allowed for enemy are default attack set at 10, and paralyze at 9. I captured it on video.

https://youtu.be/CmUCv-Fba_Y

I couldn't find a solution for this in database, so I thought it might have to do something with scripts. Sorry if it's wrong section.

KK20

I can't reproduce this problem. You sure it's a clean project?

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Kise

Yeah. Here's demo from the video - https://ufile.io/s8c0k
It's doesn't happen always, but happens.

KK20

July 08, 2017, 04:51:33 pm #3 Last Edit: July 08, 2017, 04:52:59 pm by KK20
Oh okay, I guess I was just stupidly unlucky. I see what the problem is now.

In Game_Enemy, method make_action, I added a check for if the enemy has the ability to use the the skill. I placed it right in between here:

      # Confirm HP conditions
      if self.hp * 100.0 / self.maxhp > action.condition_hp
        next
      end

      # Confirm can even use skill
      if action.kind == 1 && !skill_can_use?(action.skill_id)
        next
      end

      # Confirm level conditions
      if $game_party.max_level < action.condition_level
        next
      end

Gonna update the internal bugs thread with this. Thanks for finding that!

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Kise