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.
Does anyone have.....

0 Members and 1 Guest are viewing this topic.

****
Banned
Rep:
Level 88
I'm basically Yoda's brother
I need a script that makes it so: In the top left corner of the screen, there is a box that counts how much money you have (money counter). But I need it to say "Points" instead of "money". I also need a box to the right of the money counter that shows the name of the map that you are in.

Can anyone make me a script that does this?

just so everyone knows, im 15 years old.

***
Rep:
Level 88
Smarter than the average bear
Here ya go :D If you need the window bigger or anything just say so;

Code: [Select]
#==============================================================================
#  Basic HUD Window
#------------------------------------------------------------------------------
# By Italianstal1ion - thanks yeyinde for tutorial!
#==============================================================================


class Window_MGHUD < Window_Base
  def initialize
    super(0, 0, 340, 50)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.opacity = 145 #sets how transparent the window is
    refresh
  end
  def refresh
    self.contents.clear
   
    # Displays Gold
    self.contents.font.size = 18
    self.contents.font.color = normal_color
    self.contents.draw_text(-14, -8, 120, 32, $game_party.gold.to_s, 2)
    #Show Map Name
    map_infos = load_data("Data/MapInfos.rxdata")
    name = map_infos[$game_map.map_id].name.to_s
    self.contents.draw_text(148, -8, 180, 32, name.to_s)
   
    self.contents.font.color = system_color
    self.contents.draw_text(-80, -8, 120, 32, $data_system.words.gold, 2)
    self.contents.draw_text(112, -8, 120, 32, "Map:")

  end
  def update
    super
    refresh
  end
end

class Scene_Map
  alias mghud_main main
  alias mghud_update update
  def main
    @mghud = Window_MGHUD.new
    mghud_main
    @mghud.dispose
  end
  def update
    @mghud.update
    mghud_update
  end
end

50 lines :D

****
Banned
Rep:
Level 88
I'm basically Yoda's brother
This rocks! but could you make the

location window a tiny bit bigger?
can you put it below the money counter?
And can you make it so it doesn't say anything. instead of saying "map"?

thanks in advance :)
« Last Edit: February 04, 2007, 04:07:31 PM by fadark »

just so everyone knows, im 15 years old.

***
Rep:
Level 88
Smarter than the average bear
Code: [Select]
#==============================================================================
#  Basic HUD Window
#------------------------------------------------------------------------------
# By Italianstal1ion - thanks yeyinde for tutorial!
#==============================================================================


class Window_MGHUD < Window_Base
  def initialize
    super(0, 0, 340, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.opacity = 145 #sets how transparent the window is
    refresh
  end
  def refresh
    self.contents.clear
   
    # Displays Gold
    self.contents.font.size = 18
    self.contents.font.color = normal_color
    self.contents.draw_text(12, -8, 120, 32, $game_party.gold.to_s, 2)
    #Show Map Name
    map_infos = load_data("Data/MapInfos.rxdata")
    name = map_infos[$game_map.map_id].name.to_s
    self.contents.draw_text(0, 8, 340, 32, name.to_s)
    self.contents.font.color = system_color
    self.contents.draw_text(-76, -8, 120, 32, $data_system.words.gold, 2)

  end
  def update
    super
    refresh
  end
end

class Scene_Map
  alias mghud_main main
  alias mghud_update update
  def main
    @mghud = Window_MGHUD.new
    mghud_main
    @mghud.dispose
  end
  def update
    @mghud.update
    mghud_update
  end
end
:atma:

****
Banned
Rep:
Level 88
I'm basically Yoda's brother
Quote
But I need it to say "Points" instead of "money"

The script you game me doesn't say anything next to my money.

Here's the format:

Code: [Select]
--------------------------|
"Points:" [amount of gold]|
-----------------------------------------
      [name of map that I am in]         |
-----------------------------------------

(anything in quotation marks I want to say all the time, no matter how much gold I have)



You got most of it right on target though! :)
« Last Edit: February 05, 2007, 12:35:00 AM by fadark »

just so everyone knows, im 15 years old.

***
Rep:
Level 88
Smarter than the average bear
Ok yeah, you gotta set the gold words in the database systems tab.

****
Banned
Rep:
Level 88
I'm basically Yoda's brother
Okay! thanks! You rock! I have only finished level 4 on it, but if you want a beta when I finish level 10 then you got it. I think there is going to be like 25-50 levels in it. (I know thats a big range but I have chosen:

the minimum amount of level to be: 25
Maximum: 50

just so everyone knows, im 15 years old.

***
Rep:
Level 88
Smarter than the average bear
ok what your game?

Ill check it out later maybe

****
Banned
Rep:
Level 88
I'm basically Yoda's brother
i have no posted a beta yet (because i'm only done with level 8). after i finish level 10 you can have a beta

just so everyone knows, im 15 years old.

****
Banned
Rep:
Level 88
I'm basically Yoda's brother
I finished level 17. How do I post a beta?

just so everyone knows, im 15 years old.