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 6153
641 아이템 아이템 단축키로 구입 스크립트 3 백호 2009.02.22 1243
640 기타 KGC - 입수 경험치&금 증가 스크립트 백호 2009.02.22 1301
639 기타 무기 회피율, 방어구 공격력 지정 스크립트 6 백호 2009.02.22 1244
638 기타 양손무기, 전신갑옷 스크립트 2 백호 2009.02.22 1714
637 기타 Realistic Shop by MeisMe@rmxp.org 3 file 백호 2009.02.22 1292
636 맵/타일 Mode07 0.5 by mewsterus 3 백호 2009.02.22 1149
635 기타 필드에서 마력을 출력합니다. 백호 2009.02.22 983
634 기타 필드에서 체력을 출력합니다. 4 백호 2009.02.22 1737
633 기타 경험치 퍼센트 수정 백호 2009.02.22 1208
632 기타 레벨을 표시해주는 스크립트 5 백호 2009.02.22 2403
631 기타 Shift Puzzles v2 by SephirothSpawn (SDK호환) 3 file 백호 2009.02.22 1170
630 기타 Sized Events 0.1 by Toby@rmxp.org file 백호 2009.02.22 845
629 타이틀/게임오버 타이틀음악 백호 2009.02.22 1410
628 기타 레벨업포인트 3 백호 2009.02.22 1692
627 이름입력 한글이름 입력기 스크립트 14 백호 2009.02.22 4205
626 스킬 Advanced Mission Skills/Shop/Manager by trickster 3 file 백호 2009.02.22 1601
625 기타 Character Creator by Leon@Creation Asylum 2 file 백호 2009.02.22 1511
624 기타 비밀소년님의 경험치 표시 스크립트 백호 2009.02.22 1419
623 메뉴 비밀소년님의 필드에서 경치 % 로 나오는거 윈도우 없이 8 백호 2009.02.22 1789
622 이동 및 탈것 밑에 KIN 님의 MP 없어지는 대쉬, 제가 손좀 봤음 1 백호 2009.02.22 1244
Board Pagination Prev 1 ... 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 ... 52 Next
/ 52