질문과 답변

Extra Form
이 스크립트인데요 예제도 없고 적용 하는 법을 찾아봐도 영어라서 어떻게 해야 할지를 모르겠어요 ㅠㅠ

################################################################################
#################            Map-System by AmIMeYet              ###############
#------------------------------------------------------------------------------#
#  Created by:        AmIMeYet
#  Version:           1.1
#  Updates:           Check the website where you downloaded this script.
#  Creator's Website: amimeyet.nl.tp
#------------------------------------------------------------------------------#
###                            READ FIRST -- INFO                            ###
=begin
This map system is used to display maps, or other images on the screen.

Below is the "DECLATATIONS" part, there you must fill in your preferred text,
plus your image names.
The image files should be 513 x 324 in size. (513 X [width], and 324 Y [hight])
You should put the images in the /system/ folder...

Ofcourse you can edit Map1 and Map2, and add more maps!
Even if you do not wish to use map2 etc. you do not have to remove it.

-How do I add more maps?
    go to line 27
-How do I call the map screen and make it display my map?
    go to line 40
-How do I edit the 'ok'-button text?
    go to line 56

### HOW TO ADD MORE MAPS ###
First, you must add a new entry to the 'DECLARATIONS'.
After the other declarations, add:
 
$Map<NUMBER> = "<MAP NAME>"
$Map<NUMBER>IMG = "<IMAGE NAME>"
 
  #Replace <NUMBER> with the incremental number (+1).
  #Replace <MAP NAME> with the name you want to display at the top-left corner.
  #Replace <IMAGE NAME> with the same name as the image you want (excluding extension).
     EXAMPLE: $Map3 = "My cool name for map 3!"
              $Map3IMG = "map3image"
              
### HOW TO CALL THE MAP'S ###
Create and event/common event and on page 3 of event commands select 'script'
Then, make it call: 

$MapSystemMap = $Map<NUMBER>
$MapSystemIMG = $Map<NUMBER>IMG
$scene = Scene_MapSystem.new

  #Replace <NUMBER> with the number of your map and image..
    EXAMPLE:  $MapSystemMap = $Map1
              $MapSystemIMG = $Map1IMG
              $scene = Scene_MapSystem.new
              
Ofcourse you can also make a script in the script editor that call's that code,
if you like.

### HOW TO EDIT THE OK BUTTON TEXT ###
Go to 'Create Command Window' below (aproximately line 128 or more, depending on how many
map you have added).

Then change the text after 's1 = ' into something you like,
keeping the double quotes.
    
    ORIGINAL: s1 = "OK"       (so you can press ctlr + f to search for it  )
    EXAMPLE: s1 = "Go back"
    
Please note that not all text will fit in the small window at the bottom.
ADVANCED USERS: you have to manually alter the size and XY of that box(line 115)
###

If you have any questions, 
please post them in the topic where you found my script.

=end
#######

############################## SCENE CLASS ####################################
##          THIS MANAGES CLASS THAT DISPLAYS THE WINDOW + BUTTONS            ##
###############################################################################

class Scene_MapSystem < Scene_Base
  ###################### DECLARATIONS ######################
  $Map1 = "The world!" #Name of the first map
  $Map1IMG = "map1" #Image of the first map
  $Map2 = "Minicity" #Name of the second map
  $Map2IMG = "map2" #Image of the second map
  #################### END DECLARATIONS ####################
  $MapSystemMap = "" #Clear MapSystemMap
  $MapSysetmIMG = "" #Clear MapSystemIMG
  #--------------------------------------------------------------------------
  # * Start processing
  #--------------------------------------------------------------------------
  def start
    super
    create_menu_background
    create_command_window
    @map_window = Window_MapSystem.new(0, 0)
  end
  #--------------------------------------------------------------------------
  # * Termination Processing
  #--------------------------------------------------------------------------
  def terminate
    super
    dispose_menu_background
    dispose_command_window
    @map_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Frame Update
  #--------------------------------------------------------------------------
  def update
    super
    update_menu_background
    @command_window.update
    @map_window.update
    if @command_window.active
      update_command_selection
      update_map_window
    elsif @map_window.active
      update_map_window
    end
  end
  #--------------------------------------------------------------------------
  # * Create Command Window
  #--------------------------------------------------------------------------
  def create_command_window
    s1 = "OK"
    @command_window = Window_Command.new(150, [s1], 1)
    @command_window.y = 370
    @command_window.x = 169
  end
  #--------------------------------------------------------------------------
  # * Dispose of Command Window
  #--------------------------------------------------------------------------
  def dispose_command_window
    @command_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Update Command Selection
  #--------------------------------------------------------------------------
  def update_command_selection
    if Input.trigger?(Input::
      Sound.play_cancel
      $scene = Scene_Map.new
    elsif Input.trigger?(Input::C)
      case @command_window.index
       when 0 #terug
        Sound.play_decision
        $scene = Scene_Map.new
      end
    end
  end
  #--------------------------------------------------------------------------
  # * Update Buy Item Selection
  #--------------------------------------------------------------------------
  def update_map_window
    if Input.trigger?(Input::
      Sound.play_cancel
      @command_window.active = true
      @map_window.active = false
      @map_window.visible = false
      return
    end
end
end
############################## WINDOW CLASS ###################################
##        THIS MANAGES THE WINDOW, DISPLAYED INSIDE THE SCENE CLASS          ##
###############################################################################

class Window_MapSystem < Window_Base
  #--------------------------------------------------------------------------
  # * Object Initialization
  #     x : window X coordinate
  #     y : window Y coordinate
  #--------------------------------------------------------------------------
  def initialize(x, y)
    super(x, y, 544, 356)
    refresh
  end
  #--------------------------------------------------------------------------
  # * Refresh
  #--------------------------------------------------------------------------

  def nd_mapic 
    mapic = Cache.system("")     
  end  
  def refresh
    self.contents.clear
       mapic = Cache.system($MapSystemIMG) rescue nd_mapic #sets map IMG
       cw = mapic.width
       ch = mapic.height 
       src_rect = Rect.new(0, 0, cw, ch)
       self.contents.blt(0 , 0, mapic, src_rect)
       self.contents.draw_text(0, 0, 400, 20, $MapSystemMap, 0) #Displays the map name
  end
end
Comment '4'
  • ?
    페렐 2013.06.30 22:33
    보통은 main 위에 끼워넣으면 될거에요..

    그리고,
    5. 스크립트의 전문이 필요할 경우 txt 파일 등으로 첨부해 주시기 바랍니다.
  • ?
    빡새 2013.07.01 22:10
    파일 새로 첨부 했어요
    구글 번역기 돌려서 보니까
    시스템 쪽에 이미지 파일을 넣으라고 하는거 같은데
    방법을 몰라서 그런지 되지를 않내요..
    일어사이트에 있는 예제는 다운도 안되고
    오래전 파일이라서 소실됬나봐요 ;
  • ?
    페렐 2013.07.02 00:40
    해석해보겠습니다.

    이 맵 시스템은 화면에 맵을 표시하거나 다른 이미지를 띄웁니다.
    "DECLATATIONS"부분 위에 선호하시는 글귀와 이미지 이름을 써주세요.
    이미지 파일은 513 x 324 크기여야 합니다./system/ folder... 안에 넣어야 하시고요.

    물론 Map1, Map2 뿐만 아니라 다른 맵들도 추가할 수 있습니다.
    Map2를 쓰지 않는다 하더라도 삭제할 필요는 없어요.

    -어떻게 맵을 더 추가하나요?
    27번째 줄을 읽으세요.
    -어떻게 맵 이미지를 화면 위에 불러오나요?
    40번째 줄을 읽으세요.
    -"OK" 버튼을 어떻게 설정하나요?
    56번째 줄을 읽으세요.

    ### 맵 추가하는 방법 ###
    우선, "DECLARATIONS"에 새로운 목록을 작성해야 합니다.
    다른 맵 설정들 다음에 아래를 더해 쓰세요.

    $Map<숫자> = "<맵 이름>"
    $Map<숫자>이미지 = "<이미지 이름>"

    #<숫자> 에다간 가장 마지막에 쓰인 숫자 + 1을 해주세요.
    #<맵 이름>에다간 상단 좌측에 보여주고 싶은 텍스트를 써주세요.
    #<이미지 이름>에다간 보여주고 싶은 이미지 파일의 이름을 써주세요. (확장자 빼고.)
    예시: $Map3 = "My cool name for map 3!"
    $Map3IMG = "map3image"


    ### 맵 이미지 불러오는 방법 ###
    이벤트나 커먼이벤트를 만드신 다음 '스크립트' 기능을 이용하시고 아래처럼 써주세요.

    $MapSystemMap = $Map<숫자>
    $MapSystemIMG = $Map<숫자>이미지
    $scene = Scene_MapSystem.new

    #<숫자>는 불러오고 싶은 이미지 숫자로 바꿔주세요.
    EXAMPLE: $MapSystemMap = $Map1
    $MapSystemIMG = $Map1IMG
    $scene = Scene_MapSystem.new

    물론 스크립트 에디터에다가 불러오는 명령어 스크립트를 넣어줄 수도 있습니다.


    ### OK 버튼 텍스트 설정하는 법 ###
    128번째 쯤에 있는 'Create Command Window' 로 가세요.

    그 위에있는 's1 = '에다가 넣고싶은 글귀를 쓰에요. 이중 따옴표 꼭 쓰시고요.

    원본: s1 = "OK" (crtl F로 "OK"를 찾으셔도 되겠죠? )
    바꾼 예시: s1 = "Go back"

    너무 길면 작은 텍스트 상자 안에 문장이 다 들어가지 않을 수도 있다는거 유의하세요.
    고급 옵션: 115번째 줄 쯤에 있는 곳에서 텍스트 상자의 크기와 X, Y좌표를 수정할 수 있습니다.

    ###



    이렇게 되네요.


    If you have any questions,
    please post them in the topic where you found my script.


    =end
  • ?
    빡새 2013.07.02 20:38
    우왕 번역 감사합니다
    부럽내요 ㅠㅠ
    연구 해봐야겠어요
    미니맵이건 지도건 꼭 추가 할거에요!

List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12393
RMVX 턴마다 HP가 소비되도록 9 자크페이트 2013.05.21 1113
RMXP 위력과 공격력은 뭐가 다른 건가요? 2 아미상 2012.07.03 1113
기타 도트에 관하여 2 file 가온하제 2016.04.11 1112
RMXP 배틀종류후 화면멈춤현상 2 캬아악 2012.09.14 1112
RMXP 그림의 표시를 처음 해봤더니 도저히 모르겠네요 3 네네네duyd 2012.09.03 1112
RMVXA DB에 타일셋 적용하는데 짤리네요 4 file 알만툴 2012.12.23 1112
RMXP 메이플같이 퀘스트가 있으면 머리 위에 아이콘이 뜨는 스크립트를 구합니다. 3 ssbest1015 2010.12.11 1112
기타 VX스크립트와 XP스크립트는 같은가요 2 퐁월드 2010.11.20 1112
RMVX 타이틀화면 바꾸기 3 산타오니 2011.05.09 1111
기타 저작권에대해서. 1 후미 2011.02.21 1111
RMXP 캐릭터칩사이트 2 밀키웨이 2014.03.02 1110
RMVXA RPG Maker vx ace 타일셋 적용을 못하겠습니다 1 file IzumiSagiri 2016.09.10 1109
기타 기술대사 효과음 1 뱅뱅이 2013.09.06 1109
RMVX 스크립트로 특정 액터만 데미지 공식 변경하기 2 뱀딸기 2012.02.18 1109
기타 공사다...... 1 ★RPG마스터★ 2011.03.04 1109
툴선택 일러스트 위주로 활동하시는 분들~ 알려주세요 15 한련 2014.01.02 1108
RMVXA 게임 테스트플레이 오류 4 xzrjs 2012.09.13 1108
RMVX 스크립트 몇줄부터 충돌 아방스의강좌 2011.04.14 1108
RMVX Hud On 인터페이스 문제 1 Jung48 2012.06.18 1108
RMVXA vxa프로젝트파일이 열리지 않습니다. 3 file 죽은노예 2013.11.02 1107
Board Pagination Prev 1 ... 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 ... 516 Next
/ 516