Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 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 }


Messages In This Thread
Analyse show HP Bars - by Ace - 06-12-2010, 03:54 PM
RE: [Resolved] Analyse show HP Bars - by Ace - 12-28-2010, 04:39 PM
[Resolved] Analyse show HP Bars - by Kread-EX - 06-12-2010, 04:04 PM
[Resolved] Analyse show HP Bars - by Ace - 06-12-2010, 04:45 PM
[Resolved] Analyse show HP Bars - by Kread-EX - 06-12-2010, 08:19 PM
[Resolved] Analyse show HP Bars - by Ace - 06-12-2010, 08:46 PM
[Resolved] Analyse show HP Bars - by Kread-EX - 06-12-2010, 08:50 PM
[Resolved] Analyse show HP Bars - by Ace - 06-12-2010, 09:00 PM
[Resolved] Analyse show HP Bars - by Kread-EX - 06-12-2010, 09:13 PM
[Resolved] Analyse show HP Bars - by Ace - 06-12-2010, 09:26 PM
[Resolved] Analyse show HP Bars - by Ace - 06-15-2010, 08:06 PM
[Resolved] Analyse show HP Bars - by Kread-EX - 06-16-2010, 10:54 AM
[Resolved] Analyse show HP Bars - by Ace - 06-16-2010, 12:17 PM

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



Users browsing this thread: