XP 스크립트

#==============================================================================
# World Map Version 1.2
# Made by: Icedmetal57
# Date: July 19th, 2006
#------------------------------------------------------------------------------
# Instructions
# All that needs to be done is just copy and paste this into a new script,
# above Main. Also change map.png to the Picture file name of the map, that
# is going to be used for the map image and change hero.png to the Picture file
# name of the hero icon, that is gonna show up when at important locations.
#==============================================================================

#==============================================================================
# ** Window_WorldMapHelp
#------------------------------------------------------------------------------
#  This is the window that displays the little text
#==============================================================================

class Window_WorldMapHelp < Window_Base
  # ------------------------------------
  def initialize
    super(340, 0, 300, 80)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface # default font type
    self.contents.font.size = 18 # font size
    refresh
  end
  # ------------------------------------
  def refresh
    self.contents.clear
    self.contents.draw_text(0, 0, 160, 32, "Press ESC to exit", 2)
    self.contents.font.color = system_color
    self.contents.draw_text(0, 20, 220, 32, "Current Location:")
    self.contents.font.color = normal_color
    self.contents.draw_text(120, 20, 220, 32, $game_map.name.to_s)
  end
end

class Window_WorldMapLocation < Window_Base
  # ------------------------------------
  def initialize
    super(0, 0, 64, 64)
    self.contents = Bitmap.new(width - 32, height - 32)
    self.contents.font.name = $fontface # default font type
    self.contents.font.size = 18 # font size
    refresh
  end
  # ------------------------------------
  def refresh
    self.contents.clear
    locate = RPG::Cache.picture("hero.png") # picture of hero icon
    hero = Rect.new(0, 0, locate.width, locate.height)
    self.contents.blt(0, -4.9, locate, hero)
  end
end


#==============================================================================
# ■ Scene_Map
#------------------------------------------------------------------------------
#  Displays a map
#==============================================================================

class Scene_WorldMap
  def main
    @map = Sprite.new
    # change "map.png" to whatever you wish to show
    @map.bitmap = RPG::Cache.picture("world_map.png")
    @map_help = Window_WorldMapHelp.new
    @map_help.opacity = 160
    #--------------------------------------------------------------------------
    # All Map Id's go here
    #--------------------------------------------------------------------------
    if $game_map.map_id == 4 # Change to the map id number of the landmark/city
      @location = Window_WorldMapLocation.new
      @location.x = 335 # x-coordinate on map of landmark/city of map id
      @location.y = 185 # y-coordinate on map of landmark/city of map id
      @location.opacity = 0
    elsif $game_map.map_id == 15
      @location = Window_WorldMapLocation.new
      @location.x = 340
      @location.y = 227
      @location.opacity = 0
    else
      @location = Window_WorldMapLocation.new
      @location.x = 700
      @location.y = 500
      @location.opacity = 0
    end
    #--------------------------------------------------------------------------
    # All Map Id's go up there
    #--------------------------------------------------------------------------
    Graphics.transition
    loop do
      Graphics.update
      Input.update
      update
      if $scene != self
        break
      end
    end
    Graphics.freeze
    @map_help.dispose
    @location.dispose
  end
  #--------------------------------------------------------------------------
  # ● Update
  #--------------------------------------------------------------------------
  def update
    @map_help.update
    @location.update
    if @map_help.active
      update_command
      return
    end
  end
  #--------------------------------------------------------------------------
  # ● Update Command
  #--------------------------------------------------------------------------
  def update_command
    if Input.trigger?(Input::B)
      $game_system.se_play($data_system.cancel_se)
      $scene = Scene_Map.new
    end
  end
end

Who's 백호

?

이상혁입니다.

http://elab.kr

Comment '11'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6202
821 기타 Letter by Letter Message Window by slipknot@rmxp.org (SDK호환) 1 file 백호 2009.02.22 760
820 기타 Localization by ForeverZer0, KK20 습작 2013.04.26 738
819 맵/타일 Map Event Large Make 2 백호 2009.02.22 1134
818 맵/타일 Map Extension - 맵상의 에어리어 설정, 탈것, 맵 루프 등 from RGSS Wiki 3 file 백호 2009.02.22 2709
817 맵/타일 Map Image Maker 3.0 by rey meustrus file Alkaid 2010.09.06 1608
816 맵/타일 Map Loop Script 백호 2009.02.21 999
815 이동 및 탈것 Maplinks - 맵연결을 쉽게 하기 1 백호 2009.02.22 1542
814 기타 Materia System file 백호 2009.02.21 749
813 메뉴 Materia System 2 file 백호 2009.02.22 1223
812 메뉴 Materia System 2.01v by SephirothSpawn 6 file 백호 2009.02.22 2104
811 그래픽 MAWS: Modified Advanced Weather Script 1.2 by Agckuu Coceg 2 file Alkaid 2010.09.13 1969
810 그래픽 Meagan's Particles 1.1 by DerVVulfman 3 Alkaid 2011.11.01 2211
809 이동 및 탈것 Memorize Location R2 by dubealex file 백호 2009.02.22 846
808 스킬 MicKo's Skill Tree 1.2 by DerVVulfman 2 Alkaid 2011.03.15 2010
807 기타 Minesweeper(지뢰찾기) by SephirothSpawn (SDK호환) 3 file 백호 2009.02.22 1363
806 전투 Minkoff's Animated Battler Enhanced 11.2 by DerVVulfman 1 쉴더 2009.02.21 1483
805 전투 Minkoff's Animated Battlers - Enhanced 13.2 by DerVVulfman Alkaid 2010.09.10 1687
804 전투 Minkoff's Animated Battlers - Enhanced 13.3 by DerVVulfman file Alkaid 2010.10.14 1646
803 전투 Minkoff's Animated Battlers - Enhanced 13.4 by DerVVulfman 2 Alkaid 2011.07.13 1458
802 전투 Minkoff's Animated Battlers - Enhanced 13.8 by DerVVulfman 1 Alkaid 2012.08.26 1832
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 52 Next
/ 52