prepe 7 Posted April 5, 2012 (edited) Window_MapName+An edit by prepeIntroductionThis is the first but hopfully not the last thing I give to you guys. I'm no scripter but am trying to learn it so here you go.What I did is edit the map name script to show a custiom background pic behind the name and moved it to the rightof the screen. I know its not much and super easy but I felt someone could use it.ScreenshotsThe ScriptPlace this ether in the materials section or overright Window_MapNamewith this one. If using the map name fix By Crazyninjaguy place this above it. #============================================================================== # Window Map Name+ # by Enterbrain # edited by LUSHI # battle fix by Sixth # Date 05/24/2015 #------------------------------------------------------------------------------ # **WHAT IT DOES** # This edit is simple I'm no pro but wanted my have my one image in the # background of the map name so I edited Window_MapName. # This adds a background image to the map name and moves it to the right of the # screen. #------------------------------------------------------------------------------ # **WHERE THINGS GO** # place this scrip ether in the materials section or overright Window_MapName # with this one. If using the map name fix By Crazyninjaguy place this above it. # # Must have "Map_Name_Back.png" in Graphics/System folder # # thats it run your game. # #------------------------------------------------------------------------------ # **HOW TO EDIT** # To change the locaton of the name change the values of lines, # # 49 # 122 # 123 # # to change the name of the png file find line, # # 120 # # and edit as you need. # # **THE END** # Thats all there is. I hope That helps. #------------------------------------------------------------------------------ # This window displays the map name. #============================================================================== class Window_MapName < Window_Base #-------------------------------------------------------------------------- # * Object Initialization #-------------------------------------------------------------------------- def initialize super(0, 0, window_width, fitting_height(1)) self.opacity = 0 self.contents_opacity = 0 self.x = 340 @map_name_back = Sprite.new @show_count = 0 refresh end #-------------------------------------------------------------------------- # * Get Window Width #-------------------------------------------------------------------------- def window_width return 240 end #-------------------------------------------------------------------------- # * Frame Update #-------------------------------------------------------------------------- def update super if @show_count > 0 && $game_map.name_display update_fadein @show_count -= 1 else update_fadeout end end #-------------------------------------------------------------------------- # * Update Fadein #-------------------------------------------------------------------------- def update_fadein self.contents_opacity += 16 @map_name_back.opacity += 16 end #-------------------------------------------------------------------------- # * Update Fadeout #-------------------------------------------------------------------------- def update_fadeout self.contents_opacity -= 16 @map_name_back.opacity -= 16 end #-------------------------------------------------------------------------- # * Open Window #-------------------------------------------------------------------------- def open refresh @show_count = 150 self.contents_opacity = 0 self end #-------------------------------------------------------------------------- # * Close Window #-------------------------------------------------------------------------- def close @show_count = 0 self end #-------------------------------------------------------------------------- # * Refresh #-------------------------------------------------------------------------- def refresh contents.clear unless $game_map.display_name.empty? draw_background(contents.rect) draw_text(contents.rect, $game_map.display_name, 1) end end #-------------------------------------------------------------------------- # * Draw Background #-------------------------------------------------------------------------- def draw_background(rect) temp_rect = rect.clone temp_rect.width /= 2 contents.gradient_fill_rect(temp_rect, back_color2, back_color1) @map_name_back = Sprite.new @map_name_back.bitmap = Cache.system("Map_Name_Back.png") @map_name_back.z = 0 @map_name_back.x = 370 @map_name_back.y = 7 @map_name_back.opacity = 0 temp_rect.x = temp_rect.width contents.gradient_fill_rect(temp_rect, back_color1, back_color2) end #-------------------------------------------------------------------------- # * Get Background Color 1 #-------------------------------------------------------------------------- def back_color1 Color.new(0, 0, 0, 0) end #-------------------------------------------------------------------------- # * Get Background Color 2 #-------------------------------------------------------------------------- def back_color2 Color.new(0, 0, 0, 0) end #-------------------------------------------------------------------------- # * Delete Background On Battle Start #-------------------------------------------------------------------------- def dispose @map_name_back.bitmap.dispose @map_name_back.dispose super end end ResourcesCredits Goes to Hanzo Kimura. Its his graphic form the Valkyrie Stories open source that he gave out.I just edited it a little.Goes in your Graphics/System folder. Name it "Map_Name_Back" without the quotes.Image shack changed the name on me.CompatibilityAs its a small edit to a default script it should have no issues. If it does post here I shall try and fix it.Credit and Thanks- Hanzo Kimura- Enterbrain - Sixth- Everyone who has helped me learn to script over the years.Author's NotesThe instructions on how to edit and change it are in the script.I encourage you to make your own graphic for this.I also will not be making a demo as thats how I learned.I hade to put them in and set them up, no copy past sorry guys.I hope you like it.Credits are welcome but not mandatory. Just ask before you repost this on another forum, thanksPrepe Edited May 25, 2015 by prepe 3 oriceles, LadyBloodsong and Triper reacted to this Share this post Link to post Share on other sites
Eternal Sonata 0 Posted April 5, 2012 Thank you so much I've been wanting a script like this for a long time. Share this post Link to post Share on other sites
prepe 7 Posted April 5, 2012 (edited) Thank you so much I've been wanting a script like this for a long time. You are very welcome. I know its not much but glad you liked it. -EDIT- Hold on dont use it yet. I found an error when transferring from one map to another. Its 3am I will fix it tomorrow after work and have it up by tomorrow evening. Sorry Guys Prepe -EDIT AGAIN- All fixed Edited April 5, 2012 by prepe Share this post Link to post Share on other sites
Ehren Rivers 14 Posted April 5, 2012 (edited) All right, I MIGHT have made a mistake but I followed the instructions directly; Script 'Map Name Plus' line 83: RGSSError occurred. disposed sprite The coding of that line, according to my script: @map_name_back.opacity -= 16 It happens whenever I change between maps, apparently. EDIT: Oh, you already noticed. Awesome. Edited April 5, 2012 by Ehren Rivers Share this post Link to post Share on other sites
prepe 7 Posted April 5, 2012 (edited) All right, I MIGHT have made a mistake but I followed the instructions directly; Script 'Map Name Plus' line 83: RGSSError occurred. disposed sprite The coding of that line, according to my script: @map_name_back.opacity -= 16 It happens whenever I change between maps, apparently. EDIT: Oh, you already noticed. Awesome. Yeah I did and its good to go now. If anyone has used this replace the code with the new one. Its all fixed and ready to go. let me know if there are more errors. Also Im planing on making more for it like it sliding in from the side, or top, or something. I dunno yet though well see If i have it in me to do that. That will be another day though. Prepe Edited April 5, 2012 by prepe Share this post Link to post Share on other sites
Wyrelade 15 Posted April 5, 2012 Looks delicious... Planning to edit the hud and make it really nice map name pop-upper ;3... Thanksies. Share this post Link to post Share on other sites
prepe 7 Posted April 5, 2012 (edited) Looks delicious... Planning to edit the hud and make it really nice map name pop-upper ;3... Thanksies. Your welcome. I hope it all works out for you. I noticed the pic stays when you open the menu.I will fix that and have it up tonight. Prepe Edited April 6, 2012 by prepe Share this post Link to post Share on other sites
Seanna 1 Posted April 17, 2012 Ah, it's what I needed right now. Thank you for sharing it, I will try it as soon as possible. Share this post Link to post Share on other sites
prepe 7 Posted April 17, 2012 Ah, it's what I needed right now. Thank you for sharing it, I will try it as soon as possible. you are verry welcome Share this post Link to post Share on other sites
UltimateBoskonovitch 2 Posted July 27, 2012 I'm slightly more interested in the open source of Valkyrie Stories as the link was taken down before I got my hands on it. :'( Share this post Link to post Share on other sites
Rhayvie1978 1 Posted August 2, 2012 (edited) This is great! I really need his to my project. Thank you for this! I want to make a request, only if possible. Can make a font for map title w/c is different from the default system font? I only want to display the map title with different font style from default font. Thanks you! Bug report: When you encounter enemy while the map title is not yet fading out, the map title will still show up in battle scene and never fade out. Edited August 2, 2012 by Rhayvie1978 Share this post Link to post Share on other sites
prepe 7 Posted September 1, 2012 This is great! I really need his to my project. Thank you for this! I want to make a request, only if possible. Can make a font for map title w/c is different from the default system font? I only want to display the map title with different font style from default font. Thanks you! Bug report: When you encounter enemy while the map title is not yet fading out, the map title will still show up in battle scene and never fade out. Yeah the font is easy and the bug is fixed. Im revamping this to be better and bug free, I hope. Ill post when its done. Share this post Link to post Share on other sites
Drummerboi32 0 Posted September 6, 2012 Hi, I have put this script in but the name does not show up on any map :S any help on this? Cheers DB32 Share this post Link to post Share on other sites
prepe 7 Posted September 6, 2012 Hi, I have put this script in but the name does not show up on any map :S any help on this? Cheers DB32 In your map properties there are two places to type a name. One is the name and the other is what displays as the map name. I'm sure its blank and thats why. Also the first map you start on does not show the name. You need to go to a new map for it to work.Its a vxa bug but there is a fix for it on the forums here. I'm not sure where its at though. Share this post Link to post Share on other sites
Mr. Detective 5 Posted January 25, 2014 (edited) Issue has been fixed. Edited January 27, 2014 by Mr. Detective Share this post Link to post Share on other sites
Lord Vectra 413 Posted May 19, 2015 Imma use this. It's easy-to-use which is good. Share this post Link to post Share on other sites
+ Galdelonian 13 Posted May 20, 2015 Could anybody make it so this automatically disposes itself when battle begins? Share this post Link to post Share on other sites
Sixth 113 Posted May 20, 2015 Add this above the last 'end' line (so, inside the class): def dispose @map_name_back.bitmap.dispose @map_name_back.dispose super endThis should get rid of the background automatically. 1 prepe reacted to this Share this post Link to post Share on other sites
prepe 7 Posted May 25, 2015 (edited) Wow i totally forgot i started this script so long ago. I forgot all about it. Thanks for the fix @Sixth. -EDIT- I updated the script in the first post to include the fix by @Sixth. Just replace the old one with the new one. Prepe Edited May 25, 2015 by prepe Share this post Link to post Share on other sites