RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Script GoldMap VX Show the amount of gold in the map icon included!

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 83
Hello people,

Im new here, i can say that im impresend about this page It's the best!

Im bring you a script to show the amount of gold in the map. The script draw in the map an Icon of a litle bag of money olso

Intructions : Just copy and paste the script into your project and let the script to do the rest.  may be you need to desable the script any time in the game, you can disable the script, turn on the switch 5 (by default) and the gold in the screen gone, turn off and appear agian.      Credits to: Falcao

screenshots


here the code
Code: [Select]
#========================================================================#
#========================================================================#
#  #*****************#        Muestra el dinero en el mapa con           #
#  #*** By Falcao ***#        iconos y el nombre de la base de           #         
#  #*****************#        datos.   GoldMap v1.0
#        RMVX                 Credits to Falcao. 
#========================================================================#

module Gold_Map
#------------------------------------------------------------------------
# Interruptor que desactiva la muestra de dinero en el mapa
Gold_disable = 5
#------------------------------------------------------------------------
#Posision X del dinero en el mapa
Posision_X = 410
#------------------------------------------------------------------------
#Posision Y del dinero en el mapa
Posision_Y = 333
#------------------------------------------------------------------------
end

class Window_Gold_map < Window_Base
  def initialize
    super(0, 0, 135, 85)
    self.opacity = 0
    refresh
  end
  def refresh
    self.contents.clear
    icon = Cache.system("IconSet")
    src_rect = Rect.new(0, 216, 24, 26)
    self.contents.blt(30 , 30,icon, src_rect)
    cx = contents.text_size($data_system.terms.gold).width
    self.contents.font.color = normal_color
    self.contents.draw_text(-20, 30, 120, 32, $game_party.gold.to_s, 2)
    self.contents.font.color = system_color
    self.contents.draw_text(100-cx, -3, cx, 32, $data_system.terms.gold, 2)
  end
  def update
    refresh
  end
end

class Scene_Map
  include Gold_Map
  alias falcao_gold_main main
  def main
    @gold_map =  Window_Gold_map.new
    @gold_map.x = Posision_X
    @gold_map.y = Posision_Y
    if $game_switches[Gold_disable] == false
      @gold_map.visible = true
    else
      @gold_map.visible = false
    end
    falcao_gold_main
    @gold_map.dispose
  end
  alias falcao_gold_update update
  def update
    @gold_map.update
    if $game_switches[Gold_disable] == false
      @gold_map.visible = true
    else
      @gold_map.visible = false
    end
    falcao_gold_update
  end
end

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Most Mature Member2012 Favorite Staff Member2012 Best RPG Maker User (Scripting)2012 Best MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Use of Avatar and Signature Space2011 Best RPG Maker User (Scripting)2011 Most Mature Member2011 Favourite Staff Member2011 Best Veteran2010 Most Mature Member2010 Favourite Staff Member
Looks nice, falcao. Perfect for places like casinos and the like.

**
Rep:
Level 83
Thank you Modern Algebra, it is perfect for casinos!!!! jeje i hope more people use this script too

**
Rep: +0/-0Level 84
very nice
thank you  :D

**
Rep: +0/-0Level 83
Nice script I'm used this in my game! But can you explain the script because I want to learn RGSS2 and I'm just a beginner :D BTW I've import another icon set (with the same icon) but when I play 2 parts are a little bit blue transparant???

greetzz
atiebatie99
My work isn't really good because I'm just 14
year
My English isn't really good because I'm from Netherlands

**
Rep:
Level 83
im not the bes teaching rgss but i can help you in basics

Here you have a RGSS GUIDE By venadian garden

I learned a lot form there

PDF File

http://www.4shared.com/file/106030785/5a1293bb/Guia_RGSS_Vendian.html


**
Rep: +0/-0Level 68
Don't drink and drive SMOKE and fly!
Very good script i can't say but i want to move the icon and the G letter in the middle down of the screen.I managed to move the icon but i can't move the G letter! :( If anyone could help me i would appreciate