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
#========================================================================#
#========================================================================#
# #*****************# 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