level on money window (VX Ace)

Joined
Aug 16, 2015
Messages
102
Reaction score
2
First Language
English
Primarily Uses
RMVXA
menu script.png 


I was wondering if anyone could create a script where it showed your players level above your money in the same window? If it makes it any easier, there is only one character in your party at a time.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSS3 Script Requests. Please be sure to post your threads in the correct forum next time. Thank you.
 

JoePro

None Newb
Veteran
Joined
May 29, 2014
Messages
78
Reaction score
17
First Language
English
Primarily Uses
Here you go.

Code:
#==============================================================================
# ** Window_Gold
#------------------------------------------------------------------------------
#  This window displays the party's gold.
#==============================================================================

class Window_Gold < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #--------------------------------------------------------------------------
  def initialize
    super(0, 0, window_width, fitting_height(2))
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------
  def refresh
    contents.clear
    draw_actor_level(4, 0)
    draw_currency_value(value, currency_unit, 4, line_height, contents.width - 8)
  end
  #--------------------------------------------------------------------------
  # * Draw Level
  #--------------------------------------------------------------------------
  def draw_actor_level(x, y)
    actor = $game_party.battle_members[0]
    width = contents.width - 8
    cx = text_size(Vocab::level_a).width
    change_color(normal_color)
    draw_text(x, y, width - cx - 2, line_height,  actor.level, 2)
    change_color(system_color)
    draw_text(x, y, width, line_height, Vocab::level_a, 2)
  end
end
 
Joined
Aug 16, 2015
Messages
102
Reaction score
2
First Language
English
Primarily Uses
RMVXA
thank you. I tested it, it works. Once again, thank you.
 

JoePro

None Newb
Veteran
Joined
May 29, 2014
Messages
78
Reaction score
17
First Language
English
Primarily Uses
No problem. I'll fix it up in a min to help with any compatibility issues you might run into in the future. 
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top