Jump to content
Sign in to follow this  
Nicke

Simple Gold Hud

Recommended Posts

xs.png

Simple Gold Hud

Version: 1.0b


Introduction
A simple script that allows you to display a gold hud on the map.

Features

  • Easy to use and install.
  • Simple to change location of the window.
  • Choose an icon that will be displayed next the gold value.
  • The ability to have a switch turn it on/off.
  • A few more simple tweaks that you can play around with.
  • A counting effect when updating the gold amount.
  • The ability to enable/disable the counting effect with a switch. Can be neat if you want to disable it when giving the player a huge reward in money.

Screenshots
Gold_Hud.jpg

How to Use
To install this script, open up your script editor and copy/paste this script to an open slot below Materials but above Main. Remember to save.

Script

Get the script here and the Core Script.

 

Updates
Version 1.b: Added the ability to enable/disable the counting effect with a simple switch ingame. Cleaned up some code and commented a few things to make it more clear.

Credit
Do credit me, Nicke, if you are planning on using this script. Thanks.
Can be use in a commercial project.

Edited by Nicke

Share this post


Link to post
Share on other sites

Just join this Gold Window to a HUD and you got a perfect combination!

 

Excelent script, already in my RPG.

Share this post


Link to post
Share on other sites

I remember you pointing me out to this script for some random project i made. you converted your scripts to RGSS3 pretty fast, nice job niclas!

Share this post


Link to post
Share on other sites

Thanks for the feedback everyone.

 

@ma5amune: Set the x and y position to the ones you want and change the switch_id as well. Then simply set that to ON when you start the game and you should be good to go.

Share this post


Link to post
Share on other sites

Great script, indeed. But try to add about 500 gold to your actor, it will be a loooong time :D

Share this post


Link to post
Share on other sites

@Angius: It depends on what time you set on the counter and yeah, it will take a long time if you decided to give the player 10.000 gold in a quest reward for example. :)

Share this post


Link to post
Share on other sites

Even on time=0 it takes pretty long :)

Is there any possibility to make something like limits? You know, you set the config option to 500 in example, and every higher amount of gold will be added instantly? Without counting animation, just SE and that's all?

Share this post


Link to post
Share on other sites

@Anigus: Yep, I can probably add a feature so that you can enable/disable the counting effect instead. Then you can choose yourself when you want to enable/disable the effect.

Share this post


Link to post
Share on other sites

@Angius & @O-M-E-G-A: Version 1.0b is up! You should now be able to to enable/disable the counting effect as you please ingame using only a simple switch. :)

Share this post


Link to post
Share on other sites

Thanks for this fantastic, but yet simple script. I were too lazy to code one, and I luckly :-Dfound this one from here. thanks once more! <3

Share this post


Link to post
Share on other sites

I seem to get a problem about:

 

Script gold line 154: NameError occured

 

undefined local variable or method 'dispose_var_hud' for

#<Scene_Map:0x636a85c

 

Please help!

Share this post


Link to post
Share on other sites

Oh my gosh it did work!!!! Thank you so much!!! What name shall I use to write you as one of the credits for my game!!???

Share this post


Link to post
Share on other sites

I'm newbie here, how to switch it on? Where is the switch?

On line 30-31 there should be this code

# GOLD = [icon, switch_id, show_icon, show_vocab, count_switch]

GOLD = [361, 1, true, false, 1]

the 1 next to 361 is the switch ID 

Share this post


Link to post
Share on other sites

I'm having a problem: when I turn on the HUD switch, it won't show up untill I open and close the menu. Can anyone help me?

 

great script btw, saved me a lot of work.

 

(sorry for my poor english, I speak Portuguese)

Share this post


Link to post
Share on other sites

 

I'm newbie here, how to switch it on? Where is the switch?

On line 30-31 there should be this code

# GOLD = [icon, switch_id, show_icon, show_vocab, count_switch]

GOLD = [361, 1, true, false, 1]

the 1 next to 361 is the switch ID 

I don't know how to turn it on, even with this information.

Share this post


Link to post
Share on other sites

yeah me too.

i've put the script and not touch anything on it and no one's changing.

i noticed the switch id is 1, but i don't know what button is that.

Share this post


Link to post
Share on other sites

I am having the same problem as PiFace, I have the switch ID set correctly. I turn on the switch, but the HUD won't update until I open the switch/variable menu (F9). Does anyone know why that is?

Share this post


Link to post
Share on other sites

Hello, I wondered if there was a line to not have it before I decide to turn the switch on.

(Because when I start a game and deactivate the switch it's still visible until the switch takes effect)

Share this post


Link to post
Share on other sites

It shouldn't display the window until the switch is turned on. So if you are starting a new game it shouldn't show up (unless you have an event that is activating the switch by accident.) Have you made sure that the window is being triggered by the desired switch? Is it set to the default number 1 switch?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
Top ArrowTop Arrow Highlighted