ElBudino95 Posted April 26, 2008 Share Posted April 26, 2008 (edited) Visualizare nome mappa sullo schermo By M50 Descrizione:questo script fa visualizare il nome della mappa sullo schermo tipo pokèmon per GBA Procedimenti:Create una nuova classe sopra Main con Nome Window_Mappa Script:#==============================================================================# ** Window_Mappa by M50#------------------------------------------------------------------------------# http://www.makerando.it Visualizza il nome della Mappa su Schermo.#======================================================================= =======class Window_Mappa < Window_Base def initialize super(0, 365, 220, 50) self.create_contents self.back_opacity = 180 self.contents.font.name = "Arial" self.contents.font.color = normal_color refresh end def refresh self.contents.clear @map = load_data("Data/MapInfos.rvdata") @mappa_nome = @map[$game_map.map_id].name self.contents.font.size = 12 @Mappa = "Locazione:" self.contents.draw_text(0, 0, 60, 24,@Mappa) self.contents.font.size = 18 self.contents.font.color = system_color self.contents.draw_text(70, 0, 160, 24,@mappa_nome) enddef update self.contents.clear self.dispose super endend Allora nella mappa in cui volete che venga visualizzato il nome fate un evento su mappa con condizione di avvio: Automaticoe inserite un evento Call Script con il seguente script:if $message_window $message_window.dispose $message_window = Window_Mappa.new else $message_window = Window_Mappa.new end Dopo di che aggiungete un Cancella Evento. Nelle mappe in cui non volete che il nome venga visualizzato fate un altro evento su mappa con avvio AutomaticoE aggiungete questo script:if $message_window $message_window.dispose $message_window = nil end Edited April 26, 2008 by ElBudino95 Il mio team con qui creo con RPG maker:http://i272.photobucket.com/albums/jj183/Edus_bucket/firmaRYUsoft.png Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now