Read it. It's a bit RM2K / 2K3 old school. Not saying an event system doesn't come in handy, as I've seen a few good ones. But your request may be easier to solve as a script.
May I ask what's the purpose of the 4-digit display?
in any event, here's a cheap script I penned in 2 minutes. More time typing instructions.
cheapo window
Code:
# The window position (x and y)
FOUR_DIGIT_X = 0
FOUR_DIGIT_Y = 0
#==============================================================================
# ** Window_FourDigit
#------------------------------------------------------------------------------
# This message window is used to display digits.
#==============================================================================
class Window_FourDigit < Window_Base
#--------------------------------------------------------------------------
# * Object Initialization
#--------------------------------------------------------------------------
def initialize
super(FOUR_DIGIT_X, FOUR_DIGIT_Y, 96, 64)
self.contents = Bitmap.new(width - 32, height - 32)
self.visible = false
end
#--------------------------------------------------------------------------
# * Set digit
#--------------------------------------------------------------------------
def set_digit(digit)
if digit == nil
self.visible = false
return
end
# If at least one part of text and alignment differ from last time
if digit != @digit
# Redraw text
self.contents.clear
self.contents.font.color = normal_color
self.contents.draw_text(0, 0, self.width - 32, 32, digit.to_s)
@digit = digit
end
self.visible = true
end
#--------------------------------------------------------------------------
# * Dispose
#--------------------------------------------------------------------------
def dispose
super
end
end
#==============================================================================
# ** Scene_Map
#------------------------------------------------------------------------------
# This class performs map screen processing.
#==============================================================================
class Scene_Map
#--------------------------------------------------------------------------
# * Public Instance Variables
#--------------------------------------------------------------------------
attr_accessor :four_window # The window variable
#--------------------------------------------------------------------------
# * Main Processing
#--------------------------------------------------------------------------
alias four_main main
def main
# Make sprite set
@four_window = Window_FourDigit.new
four_main
@four_window.dispose
end
end
#==============================================================================
# ** Interpreter
#------------------------------------------------------------------------------
# This interpreter runs event commands. This class is used within the
# Game_System class and the Game_Event class.
#==============================================================================
class Interpreter
#--------------------------------------------------------------------------
# * Set the digit
# digit : The digit value, or nil if you want to hide the window
#--------------------------------------------------------------------------
def set_digit(digit)
if $scene.is_a?(Scene_Map)
$scene.four_window.set_digit(digit)
end
end
end
You can use a simple script call in a map event window. The script call is 'set_digit' that contains either a digit value or nil. nil hides the window.
For example, using @>Script: set_digit(22) would turn the window on and display 22 in the window. And a later call of @>Script: set_digit(6352) would change it to exactly that. Entering this, @>Script: set_digit(nil) or just @>Script: set_digit erases the window
And there are two values (FOUR_DIGIT_X & FOUR_DIGIT_Y) that lets you adjust the location on the screen,
[/i]
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)