질문과 답변

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 랜덤 카운트 할 줄 아시는분? 2 에드문드 2016.03.25 137
RMMV 랜덤 버프 부여 관련 질문드립니다. 2 file 엔라스 2018.05.10 117
이벤트 작성 RMVXA 랜덤 박스에서 얻은 것을 표시하는 방법 3 겜만들고싶다앙 2020.08.26 74
RM2k 랄라라~ 오랜만에 질문좀 하나 할께요~ (Nameless) 2010.10.09 996
기타 라이트하고싶어서 어플로케일 깔라했는데 2 file 이N비 2016.02.11 176
RMXP 라이오니2~3에서 나온것처럼 동료가 4명이상 따라다니게 하기 2 아이리수 2012.03.02 1602
RMVXA 라이센스 인증오류 같은게 납니다. 4 file 아이리수 2013.03.31 1047
플러그인 추천 RMMV 라이브 어 라이브같은 배틀시스템을 구현해주는 플러그인이 있나요? 레기우스州 2020.05.11 86
RMVX 라벨이뭐죵;; 2 ㅇㅅㅇb 2010.10.28 863
RM2k 라벨의 설정, 지정 라벨로 이동 이게 뭔가요? 2 emblock 2013.05.09 916
기타 라벨은 어떻게 사용하는 것인가요? 1 GOETSU 2016.05.18 184
RMVXA 띄운 그림안에 캐릭터... 2 무명시절 2015.10.07 172
RMVX 뜬금포 질문이지만 rgss2a 이 파일이 안보입니다 3 읭여류마력 2013.01.21 1466
게임 배포 기타 뜬금없지만 쯔꾸르로 만든 TS물게임을 올려도 될까요? 2 카르네스아리엔 2021.03.30 459
이벤트 작성 RMVX 똑같은 아이템 10개 모으면 사용할수 있게 만들고싶어요 2 백말띠 2019.05.25 81
RMXP 또질문 ㅜㅜ 1 hero 2010.12.28 523
이벤트 작성 RMMV 또..질문이여..ㅠㅠ 5개의 재료가 있어야 1개의 템이 만들어지게 하고싶습니다. 2 file 쿠우쿠우0 2019.07.23 82
RMXP 또 한가지 질문. 1 찹쌀 2010.09.14 1346
RMVX 또 하나 더요 .. 1 유아린 2010.10.05 523
RMXP 또 질문이여 3 hero 2010.12.28 605
Board Pagination Prev 1 ... 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 ... 516 Next
/ 516