Jump to content
Rpg²S Forum
  • 0

Script descrizione mappe


BIN.AD. corporation™
 Share

Question

Salve, sto cercando uno script che mostri il nome della mappa dove il PG si trova. Nella sezione scripts di questo sito ne avevo trovato uno veramente buono, ma purtroppo il link di download non funziona. So che si potrebbe fare anche con un messaggio normale (usando un'AMS), ma preferirei trovare un soluzione diversa (la dimensione della Window Skin è troppo grande).

 

Potete aiutarmi?

 

Grazie.

Edited by BIN.AD. corporation™
BIN.AD. corporation™ All rights ® reservedVisita il sito http://binadcorporation.jimdo.comVedrai, ti catturerà!!!
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

Tieni questo, è stato creato da Moghunter:

 

#_______________________________________________________________________________# MOG_Location_Name V1.4			#_______________________________________________________________________________# By Moghunter	   # [url="http://www.atelier-rgss.com"]http://www.atelier-rgss.com[/url]#_______________________________________________________________________________module MOG#Font Name.MPFONT = "Georgia"#Fade ON/OFF(True - False).MPNMFD = true#Fade Time(in seconds).MPNMTM = 2#Window Position.# 0 = Upper Left.# 1 = Lower Left.# 2 = Upper Right.# 3 = Lower Right.MPNMPS = 0# Disable Window Switch(ID).WM_SWITCH_VIS_DISABLE = 227end#_________________________________________________$mogscript = {} if $mogscript == nil$mogscript["Location_Name"] = true################ Game_System ################class Game_Systemattr_accessor :fdtmattr_accessor :mpnm_xattr_accessor :mpnm_yalias mog24_initialize initializedef initializemog24_initialize@fdtm = 255 + 40 * MOG::MPNMTMif MOG::MPNMPS == 0 @mpnm_x = -300@mpnm_y = 0elsif MOG::MPNMPS == 1@mpnm_x = -300@mpnm_y = 380elsif MOG::MPNMPS == 2@mpnm_x = 640@mpnm_y = 0else @mpnm_x = 640@mpnm_y = 380end  enddef mpnm_xreturn @mpnm_xenddef mpnm_yreturn @mpnm_yenddef fdtmif @fdtm <= 0@fdtm = 0 endreturn @fdtmendend ############# Game_Map #############class Game_Mapattr_reader   :map_id  def mpname$mpname = load_data("Data/MapInfos.rxdata") $mpname[@map_id].nameendend################ Window Base ################class Window_Base < Windowdef nd_mapic mapic = RPG::Cache.picture("Mappa6")	 end  def draw_mpname(x,y)mapic = RPG::Cache.picture("Mpname") rescue nd_mapic   cw = mapic.width  ch = mapic.height src_rect = Rect.new(0, 0, cw, ch)self.contents.blt(x , y - ch + 65, mapic, src_rect)self.contents.font.name = MOG::MPFONTself.contents.font.size = 22self.contents.font.color = Color.new(0,0,0,255)self.contents.draw_text(x + 76, y + 27, 160, 32, $game_map.mpname.to_s,1)self.contents.font.color = Color.new(255,255,255,255)self.contents.draw_text(x + 75, y + 26, 160, 32, $game_map.mpname.to_s,1)endend########### Mpname ###########class Mpname < Window_Basedef initializesuper($game_system.mpnm_x, $game_system.mpnm_y, 280, 100)self.contents = Bitmap.new(width - 32, height - 32)self.opacity = 0refreshenddef refreshself.contents.cleardraw_mpname(10,0)	endend############## Scene_Map ##############class Scene_Mapalias mog24_main maindef main@mpnm = Mpname.new@mpnm.contents_opacity = $game_system.fdtmif $game_switches[MOG::WM_SWITCH_VIS_DISABLE] == false@mpnm.visible = trueelse@mpnm.visible = false  end  mog24_main@mpnm.disposeendalias mog24_update updatedef updatemog24_update  $game_system.mpnm_x = @mpnm.x$game_system.mpnm_y = @mpnm.yif $game_switches[MOG::WM_SWITCH_VIS_DISABLE] == true or $game_system.fdtm <= 0@mpnm.visible = false  else@mpnm.visible = true end if MOG::MPNMPS == 0 or MOG::MPNMPS == 1 if @mpnm.x < 0   @mpnm.x += 8elsif @mpnm.x >= 0   @mpnm.x = 0end   elseif @mpnm.x > 400   @mpnm.x -= 8elsif @mpnm.x <= 400   @mpnm.x = 400end	 end @mpnm.contents_opacity = $game_system.fdtmif MOG::MPNMFD == true$game_system.fdtm -= 3endendalias mog24_transfer_player transfer_playerdef transfer_playermog24_transfer_playerif MOG::MPNMPS == 0 $game_system.mpnm_x = -300$game_system.mpnm_y = 0elsif MOG::MPNMPS == 1$game_system.mpnm_x = -300$game_system.mpnm_y = 380elsif MOG::MPNMPS == 2$game_system.mpnm_x = 640$game_system.mpnm_y = 0else $game_system.mpnm_x = 640$game_system.mpnm_y = 380end  @mpnm.y = $game_system.mpnm_y@mpnm.x = $game_system.mpnm_x$game_system.fdtm = 255 + 40 * MOG::MPNMTM@mpnm.refreshendend

 

 

Devi inserire nella cartella Pictures un immagine chiamata Mappa6

tutto il resto è nella configurazione. :D

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...