Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Enemy Hp, Sp, Status and Name.

ENEMY HP, SP, STATUS and NAME WHEN YOU TARGET HIM!

Well, This is A little request, that I based on a script called 'Advance Target'.
The Idea of this system is show the HP, SP, Status (Poison..blah...) and name of the enemy, instead the bore help window that only show the name.

For example, Change this window (the default help target window).


for this window:

___

This script need to be compatible with the SDK, but I think a script like this doesn't cause Much Incompatibily Issues.

Well, That is All.

THanks for read this.
 
Hey tibuda, question...is it possible that the window can be changed when you have a certain member in your party? Like if you don't have the person yet, you have just the name showing...but when you have the person in your party the additional info shows up instead.
 
Something like this:

Code:
class Window_Help
  Scan_Actors = []
  alias_method :sephtib_enemybattlehelp_wnhlp_se, :set_enemy
  def set_enemy(enemy)
    $game_party.actors.each do |actor|
      if Scan_Actors.include?(actor.actor_id)
        set_actor(enemy)
        return
      end
    end
    sephtib_enemybattlehelp_wnhlp_se(enemy)
  end
end

Just fill the Scan_Actors = [] with actor_ids that allow you to scan for this information.
 
Hey, I put in the script in everything. But when I went to test out a battle I get an error in line 2 saying something about "name error" or whatever. I even took out the script completely and still gave me the error.
 
Code:
class Window_Help
  def set_enemy(enemy)
    set_actor(enemy)
  end
end

This is very neat however after the attacks are over or if I press B and reselect the same enemy, the bar won't show up.:s..

Edit; I puzzled a bit, the bar will show now but it won't update HP/MP/Status.
 
This is very neat however after the attacks are over or if I press B and reselect the same enemy, the bar won't show up.

You are right, someone can fix that bug?
and this:

Hey, I put in the script in everything. But when I went to test out a battle I get an error in line 2 saying something about "name error" or whatever. I even took out the script completely and still gave me the error.
 
Here you guys are:
Code:
#==============================================================================
# ** Window_Help
#==============================================================================

class Window_Help
  #--------------------------------------------------------------------------
  # * Scan Actors
  #--------------------------------------------------------------------------
  Scan_Actors = [1, 2, 3, 4, 5, 6, 7, 8]
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------
  alias_method :sephtib_enemybattlehelp_wnhlp_se, :set_enemy
  #--------------------------------------------------------------------------
  # * Set Enemy
  #--------------------------------------------------------------------------
  def set_enemy(enemy)
    self.visible = true
    $game_party.actors.each do |actor|
      if Scan_Actors.include?(actor.id)
        if enemy.dup != @enemy
          self.contents.clear
          draw_actor_name(enemy, 4, 0)
          draw_actor_state(enemy, 140, 0)
          draw_actor_hp(enemy, 284, 0)
          draw_actor_sp(enemy, 460, 0)
          @enemy = enemy.dup
        end
        return
      end
    end
    sephtib_enemybattlehelp_wnhlp_se(enemy)
  end
end
 
Thanks Mr.Sephirothspawn, the script works 'OK', but produce lag when you target the enemy and (When the script is activated).. I don't know Why, but the lag it's horrible.

Thanks Though!
 
This should reduce the lag a bit:
Code:
#==============================================================================
# ** Window_Help
#==============================================================================

class Window_Help
  #--------------------------------------------------------------------------
  # * Scan Actors
  #--------------------------------------------------------------------------
  Scan_Actors = [1, 2, 3, 4, 5, 6, 7, 8]
  #--------------------------------------------------------------------------
  # * Alias Listings
  #--------------------------------------------------------------------------
  alias_method :sephtib_enemybattlehelp_wnhlp_se, :set_enemy
  #--------------------------------------------------------------------------
  # * Set Enemy
  #--------------------------------------------------------------------------
  def set_enemy(enemy)
    self.visible = true
    if enemy != @enemy
      @enemy = enemy.dup
      $game_party.actors.each do |actor|
        if Scan_Actors.include?(actor.id)
          self.contents.clear
          draw_actor_name(enemy, 4, 0)
          draw_actor_state(enemy, 140, 0)
          draw_actor_hp(enemy, 284, 0)
          draw_actor_sp(enemy, 460, 0)
        end
        return
      end
      sephtib_enemybattlehelp_wnhlp_se(enemy)
    end
  end
end
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top