질문과 답변

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 12458
기타 질문,[rpg 만들기vx ace] 타이머 조작 이벤트 3 음움옴 2015.09.16 856
기타 알만툴에서는 데이터베이스를 지원하지 않나요? 1 카리아인 2011.01.01 857
RMVXA vx ace 주인공선택 스크립트인데요.....질문있습니다 2 gor 2012.06.06 857
기타 [Construct Classic]활성화 애니메이션 효과 13 말라야 2014.04.11 857
RMVXA 적을 도중부터 출현 시켰을때 한턴동안 적이 투명화됩니다. 1 kind~!! 2013.07.22 857
RMVX 스크립트 에러좀 봐주세요 ㅠㅠ 1 file 류한서 2012.11.30 857
툴선택 무료 일러스트 프로그램 1 이겸 2016.07.22 857
RMVX RPG VX 스크립트 적용법을 잘모르겠어서 질문드립니다 1 BJZompie 2015.02.07 857
RMVX 플레이어가 이벤트가 있는 방에서 이벤트 일시 삭제를 해놓고 나갔다 들어오면 계속 삭제되게 하는 법 4 엑설런트 2011.01.13 858
RMVX 데이타 베이스 스킬에 관한 질문 1 내가왔다 2011.01.30 858
기타 RPG만들기 VX 질문드립니다 (전투에 관해서) 2 떡좀쪄봐 2013.01.24 858
RMXP 8방향 이동 스크립트 삭제 후 오류 11 file 블리츠 2013.07.19 858
RMVX 테스트실행하는데 이런오류가뜸니다. 2 file 의사양반무슨말이오 2013.07.28 858
기타 대화창 4 츠키코로 2013.11.30 859
RMVX 스크립트 편집좀여... 2 ba람이 2011.11.13 859
RMVXA 벽타일이 뚫립니다. 5 이렌 2013.05.04 859
RMXP 이벤트를 삭제시켰는데 계속 반복합니다. 조언 부탁드려요ㅠㅠ 9 file OdahViing 2013.08.09 859
RMVXA 폰트 오류.. 4 file 은호 2014.06.16 859
RM2k3 게임을 테스트 하려는데 잘못 된 지형이 설정되었다고 떠요. 6 limyounjun 2013.02.15 859
RMXP 알만툴 xp 윈도우 투명해지는 것 막는법 노바 2014.01.01 859
Board Pagination Prev 1 ... 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 ... 517 Next
/ 517