Blizzy
me = Scripter.new("Noob")
- 492
- Posts
- 20
- Years
- Age 35
- ~The Netherlands~
- Seen Sep 2, 2007
here's a location window i found.rm2kdude said:Sorry to double post Ok I got the cms up I just need the Location part then im done
instruction at the bottom:
Code:
class Game_Map
def name
$map_infos[@map_id]
end
end
class Scene_Title
$map_infos = load_data("Data/MapInfos.rxdata")
for key in $map_infos.keys
$map_infos[key] = $map_infos[key].name
end
end
#==============================================================================
# ■ Window_Mapname
#------------------------------------------------------------------------------
# show name of the map
#==============================================================================
class Window_Mapname < Window_Base
#--------------------------------------------------------------------------
# ● initialize
#--------------------------------------------------------------------------
def initialize
super(0, 0, 160, 96)
self.contents = Bitmap.new(width - 52, height - 32)
self.contents.font.name = $defaultfonttype
self.contents.font.size = $defaultfontsize
refresh
end
#--------------------------------------------------------------------------
# ● refresh
#--------------------------------------------------------------------------
def refresh
self.contents.clear
# Map Name
#map = $game_map.name
self.contents.font.color = system_color
self.contents.draw_text(4, 0, 220, 32, "Location")
self.contents.font.color = normal_color
self.contents.draw_text(30, 33, 80, 32, $game_map.name)
end
end
go to scene menu and add:
Code:
@location = Window_MapName.new
@location.x = # x axis.
@location.y = # y axis.
Code:
@location.dispose
@location.update
if the font won't show up, go to main, and overwrite this:
Code:
$fontface = "Arial"
$fontsize = 24
Code:
$fontface = $defaultfonttype = "Arial"
$fontsize = $defaultfontsize = 24