Main Menu
  • Welcome to The RPG Maker Resource Kit.

Enemy HUD

Started by pacdiggity, February 12, 2012, 04:37:25 AM

0 Members and 1 Guest are viewing this topic.

pacdiggity

Enemy HUD
Version: 1.1
Author: Pacman
Date: 10/4/2012

Version History




  • <Version 1.0> 2012.02.12 - Original Release
  • <Version 1.1> 2012.04.10 – Updated for 'boss' idea and better... code.

Planned Future Versions


  • Somehow changing the tags of the enemies so that you can change the displays in-game.

Description



This script displays enemy stats (HP, MP, TP, stat icons) in the battle screen whilst selecting which enemy to target. It also includes special tags to prevent any of these stats from being drawn. And yes, enemies do have TP. New in 1.1, you can make the numbers of the enemy's gauges hidden. This would be specifically useful for boss battles.

Features


  • Displays enemies' HP, MP, TP (yes, enemies have TP), name and statuses in the window selection screen.
  • Simple notebox tags to exclude any of these from being drawn.
  • Simple notebox tag to prevent numbers being drawn on the gauges (also works for actors, because I'm lazy).

Screenshots



Some demonstrations of the differing displays of each of the enemies. Too lazy to put the boss feature in a screenshot :)

Instructions

Paste above main, at the top of your custom scripts list. Follow instructions in script header.

Script



Get it at Pastebin.

Credit




  • Pacman

Thanks


  • Pacman again, for the original VX script. :P

Support



Just post here or PM me if your problem is embarrassing.

Known Compatibility Issues

I overwrote a method in Scene_Battle, so for extra caution make sure it's near the top of your custom script list.

Demo



Nah.

Author's Notes



Check out my blag! It has blue! BLUE!
This will probably work well with Change Gauge Display.

Restrictions

Free for use in non-commercial projects, with credit. For commercial projects (seriously?) contact me.
it's like a metaphor or something i don't know

modern algebra

Nice idea - it is good to have a little more information on enemies in battle.

yuyu!

Quote from: Pacman on February 12, 2012, 04:37:25 AM
Just post here or PM me if your problem is embarrassing.

People on forums get embarrassed? :0

Anyways, I like this script. I'm not just saying that to fill up your topic with posts or anything. Nope, not at all! ;8 It's one step closer to Ace having all those awesome VX scripts. I wish I knew how to script without copying your sandwitch script. ;9

Good job, Pacman! :V

[Spoiler=My Games and Art]
ℒℴѵℯ❤


My Artwork Thread

The Lhuvia Tales [Current]

Ambassador [Complete]

The Postman [Complete]

The Wyvern [Complete]

Phoenix Wright: Haunted Turnabout [Complete]

Major Arcana [Cancelled]

[/Spoiler]

pacdiggity

UPDATED.
You can now have enemies' gauges drawn, but not the numbers they are representing, i.e., hiding the exact amount of HP, MP or TP they have. Also works on actors, because I put the code in Game_Battler which effects both Game_Actor and Game_Enemy.
it's like a metaphor or something i don't know

Wiimeiser

Would it be possible to make an addon so that the stats only display if you've scanned an enemy(with MA's Monster Catalogue)?

pacdiggity

I guess. Do you mean the name, the gauges or the numbers?
it's like a metaphor or something i don't know

Wiimeiser

The Numbers, at least.

pacdiggity

#7
Updated the Pastebin link, I'll update the topic soon. Kinda can't be bothered right now ^_^

Also if you use the addon that blocks out the enemy name, I suggest this snippet to make selecting enemies easier.
module WHITEN_ENEMY
  FLICKER = true
  FLICKER_RATE = 45
end

class Window_EnemyHUD < Window_BattleStatus
  def update
    super
    return unless active
    type = :whiten
    if WHITEN_ENEMY::FLICKER
      @last_sprite_effect_type = enemy.sprite_effect_type
      @change_counter = 0 if @change_counter.nil? or @change_counter >
       WHITEN_ENEMY::FLICKER_RATE
      @change = @change_counter > (WHITEN_ENEMY::FLICKER_RATE / 2)
      type = @last_sprite_effect_type
      type = :whiten if @change
    end
    enemy.sprite_effect_type = type
    @change_counter += 1 if WHITEN_ENEMY::FLICKER
  end
end
it's like a metaphor or something i don't know

pacdiggity

#8
Fixed a bug with detecting the presence of MA's Monster Catalogue. I was careless in the previous update.

EDIT:: Even more fixed now.
it's like a metaphor or something i don't know