질문과 답변

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 12408
기타 기존에 "게임스토어" 탭에 있던 "체험판" 메뉴 ... 2 TheEK 2012.04.25 2111
RMVXA ACE의 스크립트 4 Plossom 2012.04.26 2648
RMVX 이벤트가 플레이어에게 접촉시 발동하는 법... 4 file Cloudy 2012.04.27 2597
RMVX 스킬 사용시 나오는 문장 질문. 2 킴마유 2012.04.27 2468
RMXP XP에선 칩셋의 치환이 불가능한가요? 2 하진 2012.04.28 2110
RMVX 특수 스킬 사용시 속성 부여에 관하여 질문 드립니다. 1 킴마유 2012.04.28 2391
기타 스크립트 편집기에서 공식 변경하는법.... 나폴루 2012.04.28 1478
RMXP rpg게임만들기xp질문 4 shtk12 2012.04.29 2787
RMVXA 2k 에서 쓰는 사이드 전투 방식을 vx ace에서 하고싶은데요 4 일류 2012.04.29 2557
RMVXA (사진첨부) 문장의 표시 '\V[n]' 문장에서 변수가 출력되지 않습니다! 7 Tattoo 2012.04.29 2639
RMXP 그림의 이동 시, 좌표값 변경 없이 투명도만을 바꿀 수 있나요? 1 하진 2012.05.01 2447
기타 포토샵으로 캐릭터 도트찍기 어떻게 하나요? 3 stonesoup 2012.05.01 4355
RMXP 개촙이라몰라서 그러는데 병렬처리하고 자동실행하고 차이점이뭐죠?? 2 우카 2012.05.02 2855
RMVXA XAS 아이템이나 스킬 여러개 지정 2 쿠쿠밥솥 2012.05.02 3166
기타 xp랑 vx랑 같이 깔면 충돌있나요? 4 stonesoup 2012.05.03 2484
RMXP RMXP 배열에 관한 질문. 4 Lighna 2012.05.03 2375
RMXP 조건분기로 스크립트 $game_message.visible을 넣었더니 오류가? 3 file 하진 2012.05.04 2077
RMVXA Ace 다운받은 맵칩 적용하기 질문입니다. 1 GalTumor 2012.05.04 2559
RMVX 아이템 이름 바꾸기 and 요청 1 file ㅓ나ㅣ러마니어 2012.05.04 2631
기타 일판 쯔꾸르 게임을 한글화 가능할까요? 8 powerguyner 2012.05.04 5441
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