Analyse show HP Bars
#11
Don't worry, you're not bothering me. Your requests are always very clear, and not of "HELP ME PLZZZZZZ, I'M A NOOB !!!!!!!!!!111" type.

Several steps:
1 - In the Scene_Battle section of the CTB script, in the begninning, you'll find this:
Code:
# Support for hp bars
for enemy in $game_troop.enemies
if $game_system.killed_enemies_ids.include?(enemy.id)
   enemy.show_hp_bar=true
  end
end
Just comment out this part.

2 - Forget the common event, and simply paste this below all the CTB-related scripts.
Code:
class Game_Battler
alias_method  :krx_analyze_skill_effect, :skill_effect
def skill_effect(user, skill)
   if skill.id == 63 # Replace by the ID of your analyze skill
     self.show_hp_bar = true if self.is_a?(Game_Enemy)
     return
   end
   krx_analyze_skill_effect(user, skill)
  end
end

3 - In the Damage and Colors section of the CTB script, starting at line 107 (within the damage method), you should find this:
Code:
# Support for HP bars
if HP_BARS and @battler != nil and @battler.is_a?(Game_Enemy) and
$game_system.killed_enemies_ids.include?(@battler.id) and
@battler.show_hp_bar and @battler_visible
Remove $game_system.killed_enemies_ids.include?(@battler.id) and.
Lol, I forgot that one before.
Reply }
#12
Thanks so much, now it's working =D After doing the 3 steps, the bars showed up also when I killed an enemy, but I found the lines, which I deleted in the first step, in the update method and commented it out as well, now it works perfectly :)
Reply }
#13
I want get this thread back to life. With the new battle system I have the problem that after a battle the bars disappear. Don't know why^^
[Image: 76561198077561206.png]
Reply }


Possibly Related Threads…
Thread Author Replies Views Last Post
   Scan skill should show states Tumen 5 9,357 05-02-2017, 03:33 AM
Last Post: DerVVulfman
   show variables on screen rpg maker xp ThePrinceofMars 22 34,773 10-19-2014, 08:01 PM
Last Post: ThePrinceofMars
   Damage appears behind bars in battle prioran 3 7,672 08-06-2011, 01:46 AM
Last Post: prioran
   VX Show Picture Event Command Code? PK8 2 6,444 02-27-2009, 11:30 PM
Last Post: PK8



Users browsing this thread: 1 Guest(s)