31 May 2010

Basic Map Location Script

This basic script allows the map location to be displayed on the Status Menu. In other words, whatever the name of the map is will be shown there.

The map information is stored in "DataInfos" (located in the Data folder). The script is the same, but the extensions are different for RMXP (rxdata) and RMVX (rvdata).

So, to insert the location in a new window, the following is used:

RMXP
map_name = load_data("Data/MapInfos.rxdata")
self.contents.draw_text (0, 0, self.contents.width, 32, data[$game_map.map_id].name, 2)

RMVX
map_name = load_data("Data/MapInfos.rvdata")[$game_map.map_id].name
contents.draw_text(x, y, self.contents.width, WLH, map_name, 2)

2 Comments So Far:

Anonymous said...

Whoo-hoo, this script made my day! I've been looking for an easy way to do this! Thanks!

Companion Wulf said...

Glad you can benefit from this! Short, simple and sweet, it should be easy to incorporate in a window.

Post a Comment

Related Posts with Thumbnails
Template Design "Perfect World" by SkinCorner