Introduction This is a joint project between myself and Celianna (over at vx.net), who did all of the graphic designs. Without her I would not have been inspired to write this script, so big thanks to her. This is a very nice looking hud that will be visible when on your maps. It plug'n'play, no setup required, but it is also customizable in almost every regard for those who want to make it their own. You can change the layout, all of the images, the fonts, colors, position, scroll style, and just about anything else that you can think of. I mention all of this because it was a pain in my ass, so you had better appreciate it .
The screenshots speak for themselves, so I will just run over the basic features:
-> Plug'n'play, but also extremely customizable. -> HUD parameters can all be changed in game at runtime. -> Professional look and feel (thanks Celianna). -> Fades in and out when walking (this can be disabled). -> Auto-hide feature allows the player to hide the HUD by pressing a button. This is an animated sequence. -> Will cause absolutely no lag in your games. -> Great for ABS scripts.
Configuration/Use Just paste the script into an empty slot in your "Materials" section. All of the directions are in the configuration section of the script. You will need to download the images below and unzip them into your Graphics\Pictures folder. I have also included the fonts that I use in case you want them as well. You will need to drop those into your \Windows\Fonts directory if you don't already have them (and make sure to distribute them with our game!).
#-------------------------------------------------------------------- # * Basic Commands #-------------------------------------------------------------------- # * You can force the HUD to hide by using the "Script..." # event command with this text: # # $scene.hide_hud # # You can show the hud once again by using this line: # # $scene_show_hud #--------------------------------------------------------------------
Additional HUD Images and Configurations Celianna has been making additional graphical sets for this script. So, I have put together some pre-configured configuration sections so that they are plug'n'play.
# The actor id of the main character in your game. # This will be the character in the main hud window. PLAYER_ID = 1
# if this is set to 'true' the HUD will go opaque. # when the player is walking. TRANSPARENT_WHEN_MOVING = true # this is the minimum opacity value reached while walking. # this should be a value between 0 and 255. TRANSPARENCY_WHEN_MOVING = 64 # this value determines how fast the HUD will fade out and in. # this is in incremenets per frame (60 frames per second). TRANSPARENCY_SWITCH_SPEED = 2
# If this switch is 'ON' the hud will not appear at all. # Set this to 'nil' to disable the feature completely NO_SHOW_SWITCH = nil
# If this text is found in a map name the hud will # be disabled for that map at all times. This text # will be removed from the map name proper in case # you are using a map name script or somethin like that. NO_SHOW_TEXT = 'hud no show'
# Display an empty hud if there is no party leader? SHOW_IF_NO_LEADER = false
# Name of the player (main character) hud graphic PLAYER_HUD_IMAGE_NAME = 'player_hud' # Use the gren and blue mp/hp gauges? # You may use your own graphics, but they must # adhere to the same format as the originals, i.e., # # hud_bar_hp_000.png # # Where the '000' part is a multiple of five, from 0-100. PLAYER_USE_CUSTOM_GAUGE = true
# The physical location of the hud sprite. # All of the other graphic locations are relative to this one. PLAYER_HUD_LOC = Point.new(0, 0) # The relative location of the hud image to the hud sprite. PLAYER_HUD_IMAGE_LOCATION = Point.new(0, 0)
# The starting location of each peice of the HP gauge. PLAYER_HP_GAUGE_LOCATION = Point.new(0, 0) # the starting location of each peice of the MP gauge. PLAYER_MP_GAUGE_LOCATION = Point.new(0, 0)
SHOW_PLAYER_FACE_IMAGE = false # The location of the face graphic. FACE_LOCATION = Point.new(35, 0)
# Show all party members? (THESE FEATURES ARE NOT YET IMPLEMENTED) USE_MEMBER_WINDOW = true MEMBER_HUD_IMAGE_NAME = 'member_hud' MEMBER_USE_CUSTOM_GAUGE = false
# Allow the player to hide the HUD by pressing a button? ALLOW_HUD_HIDE = true # The button which will trigger a hud move. HIDE_HUD_INPUT = Input::X # The speed at which to move the hud. HUD_HIDE_SPEED = 7 # replace "Left" with "Right" below to change the scroll direction HUD_SCROLL_DIRECTION = ScrollDirection::Left
# Global values which are convenient for setting # multiple values to the same thing. GLOBAL_FONT_NAME = ['Magneto', 'Consolas', 'Verdana', 'Ariel', 'Courier New'] GLOBAL_PLAYER_FONT_SIZE = 22 GLOBAL_MEMBER_FONT_SIZE = 22
SHOW_PLAYER_NAME = true # The rest of the settings deal with setting the # location and style of the text displayed in the HDU PLAYER_NAME_FONT = GLOBAL_FONT_NAME PLAYER_NAME_COLOR = Colors::Silver PLAYER_NAME_USE_ITALICS = false PLAYER_NAME_USE_BOLD = false PLAYER_NAME_USE_SHADOW = true PLAYER_NAME_FONT_SIZE = 20 PLAYER_NAME_LOCATION = Point.new(10,5) PLAYER_NAME_WIDTH = 90 PLAYER_NAME_HEIGHT = 22
#------- # don't change the values below unless you know what you are doing.
# Shows above the map and below the message window by default PLAYER_HUD_Z = 199
# The text format used for gauage images. HEALTH_GAUGE_FORMAT = 'hud_bar_%s_%.3d'
# the name of the image file used as a mask for the face graphic PLAYER_FACE_MASK_NAME = 'player_face_mask'
end
Script HUD.txt ( 30.05K )
Number of downloads: 1345
Please let me know of any issues that you encounter. This is especially true for any conflicts with ABS systems, I want it to work as smoothly as possible with them.
Group: +Gold Member
Posts: 4,136
Type: Scripter
RM Skill: Undisclosed
BigEd doesn't come here anymore so it's useless to request that from him. Additionally, he doesn't have to make his script compatible with a specific system, especially huge incompatible beasts like Vampyr's.
__________________________
FRACTURE - a SMT inspired game (demo) made by Rhyme, Karsuman and me. Weep and ragequit.