Okey, im newb in scripting and I can barely edit scripts. I am currently trying to create menu to suit my means and i need to add "map location" to menu screen. Let's assume that we have blank menu and with piece of script I would like to add the map location there. I tried to figure it out by looking other people's scripts but without success.
Part of script where the location and details for "map location is defined" should look something like this, if I have understood correctly:
Don't care about the locations of map name & location texts, they are just random.
So, where should I place this and what should I add, to make this show up in menu? And as I said, im newb in scripting ruby so correct me if I said something wrong. I will appreciate any kind of help.
Thanks.
Part of script where the location and details for "map location is defined" should look something like this, if I have understood correctly:
Code:
def refresh
self.contents.font.color = system_color
self.contents.font.size = 20
self.contents.draw_text(10, 0, 220, 30, "Location")
self.contents.font.size = 20
self.contents.font.color = normal_color
self.contents.draw_text(110, 15, 80, 30, $game_map.name)
end
Don't care about the locations of map name & location texts, they are just random.
So, where should I place this and what should I add, to make this show up in menu? And as I said, im newb in scripting ruby so correct me if I said something wrong. I will appreciate any kind of help.
Thanks.