Shiny Umbreon
Member
This is all for RMXP by the way.
I made it so that sometimes battlers can have an hp higher than their maxhp. The thing is that I noticed enemies don't do anything when their hp is higher than their maxhp, while the player can still do so.
I'm not sure, but I think it is related to this:
(Scene_Battle 1, line 187-193)
I don't know where this is used, or what it exactly checks, but apparently this possible-hp>maxhp feature ruins it. Does it have to do with the enemies not attacking now? I would like someone to give me an idea of what this does. Thanks.
I made it so that sometimes battlers can have an hp higher than their maxhp. The thing is that I noticed enemies don't do anything when their hp is higher than their maxhp, while the player can still do so.
I'm not sure, but I think it is related to this:
(Scene_Battle 1, line 187-193)
Code:
# Confirm enemy conditions
if c.enemy_valid
 enemy = $game_troop.enemies[c.enemy_index]
 if enemy == nil or enemy.hp * 100.0 / enemy.maxhp > c.enemy_hp
   next
 end
end
I don't know where this is used, or what it exactly checks, but apparently this possible-hp>maxhp feature ruins it. Does it have to do with the enemies not attacking now? I would like someone to give me an idea of what this does. Thanks.