Jump to content
New account registrations are disabed. This website is now an archive. Read more here.

What you think of my script:  

11 members have voted

  1. 1. It is...

    • ...horrible.
      2
    • ...not the best.
      9


Recommended Posts

So I was bored, and made this script which displays a bitmap at the top of the screen which displays player one's HP SP and Experience. It is very easy to edit into your own HUD, hence the name I guess..

 

 

Script:

class Window_YourHUD < Window_Base
 def initialize
   super(0, 0, 640, 64)
   self.opacity = 150
   self.contents = Bitmap.new(640 - 32, 64 - 32)
   refresh
 end
 def refresh
   self.contents.clear
   reset_variables
   return if !@actor
   draw_actor_hp(@actor, 0, 0)
   draw_actor_sp(@actor, 300, 0)
   draw_actor_exp(@actor, 500, 0)
 end
 def reset_variables
   @actor = $game_party.actors[0]
   @old_hp = @actor ? @actor.hp : 0
   @old_maxhp = @actor ? @actor.maxhp : 0
   @old_sp = @actor ? @actor.sp : 0
   @old_maxsp = @actor ? @actor.maxsp : 0
 end
 def update
   super
   refresh if (@actor = $game_party.actors[0] or
               @old_hp = @actor ? @actor.hp : 0 or
               @old_maxhp = @actor ? @actor.maxhp : 0 or
               @old_sp = @actor ? @actor.sp : 0 or
               @old_maxsp = @actor ? @actor.maxsp : 0)
 end
end
class Scene_Map
 alias yourhud_main main
 alias yourhud_update update
 def main
   @yourhud = Window_YourHUD.new
   yourhud_main
   @yourhud.dispose
 end
 def update
   @yourhud.update
   yourhud_update
 end
end

 

Instructions:

 

Copy the script.

 

Insert a new script holder above main titled "YourHUD".

 

Paste the script in.

 

Make your edits if you want, and enjoy!

 

 

Screenshots:

Here are a few Screenshots of the HUD in action:

 

 

All motives full:

yourhudscreen1.png

 

The HUD detecting the player's change of SP HP and EXP and displaying it:

yourhudscreen2.png

 

The HUD demo with some variables proving the HUD works.

screenyb.png

 

The HUD showing the player's SP all gone. :(

yourhudscreen3.png

 

 

Demo:

 

Mediafire Link | Mediafire Direct Download

 

Rapidshare Link

 

2Shared Link | 2Shared Direct Download

(For the 2shared link, click "click here" next to the words save file PC at the bottom-right of the page.)

Share this post


Link to post
Share on other sites

I see you learned how to show windows. I kind of thought you would do something like this after i helped you lol.

This is the 1st step in scripting for you.

Share this post


Link to post
Share on other sites

lol well now i know who to contact when i start learning to script myself =o, its awesome bruh xD, i give it a 5/5 just because its simple with no imperfections =D

Share this post


Link to post
Share on other sites

I see you learned how to show windows. I kind of thought you would do something like this after i helped you lol.

This is the 1st step in scripting for you.

;) Not really, 'cause I read like every other script and took parts of them off to form this. Lol

 

I might make some comments on how to edit things to your own wants. MAYBE!!

 

lol well now i know who to contact when i start learning to script myself =o, its awesome bruh xD, i give it a 5/5 just because its simple with no imperfections =D

 

Well I'll try to help you whenever I want but Polraudio is the way to go if you want REAL help. :P

 

 

Thanks you guys!

Share this post


Link to post
Share on other sites

I like the HUD, i think you did a pretty good job ;)

I wish i could do that when i'm bored... LOL

Share this post


Link to post
Share on other sites

Thanks dude, you could too; making little scripts like this is fairly easy. I don't actually know anything about RGSS though.

 

And Aerow, if you want to, go right on ahead. There are a lot more HUDs out there that are cooler though, however you could modify this fairly easily to make it how you want it. Most of the things in there are self explanatory. At least to me they are.

Share this post


Link to post
Share on other sites

Thanks! I almost out more work into the demo! :lol:

 

I made the windowskin too.. :P

Share this post


Link to post
Share on other sites

I rather like this. Its simple enough for me to figure out how and why it works.

Thank you so much for sharing it. I hope you don't mind my picking it apart on my own time.

I've been playing with altering it to my own needs a bit.

I was wondering if there is a way to start the game with it off then turn it on for the rest of the game.

I don't really know how to turn scripts on and off.

Share this post


Link to post
Share on other sites

This is were people tell you not to necropost

 

don't reply to old forums its misleading :alright: but to solve your question i don't think your be able to with that script unless you edit the size of the hud bar and inserting charcters name which is very feaseable until some one makes a new script try using another hud that features this a suggetion is raizels hud also this is mainly supposed to be just a simple hud

Edited by MakeshiftJ

Share this post


Link to post
Share on other sites

This is were people tell you not to necropost

 

don't reply to old forums its misleading :alright: but to solve your question i don't think your be able to with that script unless you edit the size of the hud bar and inserting charcters name which is very feaseable until some one makes a new script try using another hud that features this a suggetion is raizels hud also this is mainly supposed to be just a simple hud

Well, I got one but since I use animated HP, SP bars, Those don't work... They are always with colors, not images, how do I make them animated?

 

I now use > http://www.rmxpunlimited.net/scripts/rmvx/item/hud-menu < that HUD.

Edited by Futendra

Share this post


Link to post
Share on other sites

Well, I got one but since I use animated HP, SP bars, Those don't work... They are always with colors, not images, how do I make them animated?

 

I now use > http://www.rmxpunlimited.net/scripts/rmvx/item/hud-menu < that HUD.

i assume you meant like animated bars that go down right

Its bascailly a draw script so bascailly replace certain values that use the draw vaule bascailly whenever you see draw on the script read what it says after it I.E slant bar actor hp you would edit the numbers to the postion you want

 

 

or just use MOG's Hud

http://www.mediafire.com/?7qc1buah01a4bkb

it bascailly puts a small hud underneath the Hero

Edited by MakeshiftJ

Share this post


Link to post
Share on other sites

Why are you guys digging HUDS

The screen resolution is Only 640 x 480

All the hell with it...lets add a big hud

New viewing/map will be 640 x 400 or less

============================================

Your killing your Gameplay/map viewing

Just go to the menu and see your stats,

thats sad you need a Hud

Cause you keep forgetting your stats.......

A Hud is a waste "Sorry"

 

And you really only need "(stats) viewing" during battles.

 

I know yall are going to say the screen scrolls H/V...so huds ain't really blocking the view...

BUT...yall know my point....Just a Suggestion......

Edited by GameFreak001

Share this post


Link to post
Share on other sites

Your killing your Gameplay/map viewing

Just go to the menu and see your stats,

thats sad you need a Hud

Cause you keep forgetting your stats.......

A Hud is a waste "Sorry"

 

And you really only need "(stats) viewing" during battles.

 

I know yall are going to say the screen scrolls H/V...so huds ain't really blocking the view...

BUT...yall know my point....Just a Suggestion......

There are way more uses than just viewing your status. You could make simple edits to display things for minigames, a minimap, maybe a sneaking system, your own action system. The list can go on and on and on.

I use a HUD system for my collector minigame where every sec counts. You dont want to be going into a menu for that.

The title says it all. "Your Very Own HUD" This is mainly a scripting resource for people who want to make their own HUD.

Share this post


Link to post
Share on other sites

He didn't say I couldn't so I added a face graphic support function. All it does is shows the current player face at the top of the screen. However there has to be a picture in the Pictures folder with the actors name.

 

 

 

 

 

 

 

class Window_YourHUD < Window_Base

def initialize

super(0, 0, 640, 60)

self.opacity = 150

self.contents = Bitmap.new(640 - 32, 60 - 32)

self.z = 1

refresh

end

def refresh

self.contents.clear

reset_variables

return if !@actor

draw_actor_hp(@actor, 100, 0)

draw_actor_sp(@actor, 300, 0)

draw_actor_exp(@actor, 500, 0)

image = Sprite.new

end

def reset_variables

@actor = $game_party.actors[0]

@old_hp = @actor ? @actor.hp : 0

@old_maxhp = @actor ? @actor.maxhp : 0

@old_sp = @actor ? @actor.sp : 0

@old_maxsp = @actor ? @actor.maxsp : 0

@name = $game_party.actors[0].name

end

def update

super

refresh if (@actor = $game_party.actors[0] or

@old_hp = @actor ? @actor.hp : 0 or

@old_maxhp = @actor ? @actor.maxhp : 0 or

@old_sp = @actor ? @actor.sp : 0 or

@old_maxsp = @actor ? @actor.maxsp : 0)

image = Sprite.new

image.z = 2

image.bitmap = RPG::Cache.picture(@name)

end

 

end

class Scene_Map

alias yourhud_main main

alias yourhud_update update

def main

@yourhud = Window_YourHUD.new

yourhud_main

@yourhud.dispose

end

def update

@yourhud.update

yourhud_update

end

end

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Why are you guys digging HUDS

The screen resolution is Only 640 x 480

All the hell with it...lets add a big hud

New viewing/map will be 640 x 400 or less

============================================

Your killing your Gameplay/map viewing

Just go to the menu and see your stats,

thats sad you need a Hud

Cause you keep forgetting your stats.......

A Hud is a waste "Sorry"

 

And you really only need "(stats) viewing" during battles.

 

I know yall are going to say the screen scrolls H/V...so huds ain't really blocking the view...

BUT...yall know my point....Just a Suggestion......

 

You said its only needed during battle, GUESS WHAT THE WHOLE GAME IS IN BATTLE! ABS!

 

Omg some people need logistics.........................................................

Share this post


Link to post
Share on other sites

GameFreak, I don't think you should be complaining. To make a fact, it states that you can edit this script and I found out how to dim the window and stats down just by editing a few numbers.

 

(This is, quite frankly, a fail on you for making that point.)

 

Anyways, I was wondering guys, this script made my my entire game slow down. What do I need to edit to make it normal speed again?

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...