질문과 답변

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 12391
메뉴를 한글로만드는방법.. 3 file 의인화 2013.07.03 853
RMVXA 스크립트에서 %s 이 뭔가요? 1 학또 2013.07.03 678
RMVX 메세지 자동으로 넘기는거 어케하나요?? ㅠㅠ 10 지혈이 2013.07.03 3143
rpg쯔구르 한글화된 모든게임의 한글이 안나옵니다. 11 file 시라소몬 2013.07.03 1768
RMVX 배포용 게임 작성시 3 file emblock 2013.07.03 804
RMXP 셀프 변수 스크립트 오류질문입니다. 1 CJYG* 2013.07.02 627
RMVXA VX Ace 메뉴창을 변경하고 싶습니다. 1 히나나이 2013.07.02 1106
RMVX 맵갯수가 많아지면 렉이 심해지나요? 2 Uiman 2013.07.01 1009
RMXP 이벤트 이동 중 그래픽 변경에 관하여 질문합니다. 6 file 쌍쌍뱌 2013.07.01 759
RMXP 픽쳐 1번의 z좌표가 몇인지 알고싶어요 2 /여우비/ 2013.07.01 762
RMXP 스페이스바로 그림을 삭제하는 법을 아시나요? 4 수프림 2013.07.01 835
기타 호러게임에대한 조언을 구합니다. 14 수프림 2013.06.30 816
RMVX 이 미니맵 스크립트 사용법을 알고 싶어요 4 file 빡새 2013.06.30 1107
RMVXA 스킬에 패널티를 주고 싶습니다. 3 뿌잉뿌잉쨔응 2013.06.30 773
RMXP 액알 만드려는데 키가 인식이 안돼요 7 Rpgxp팬~ 2013.06.30 802
RMVX npc에게 비밀번호를 말해야 열쇠를 받는 것 2 Lloiyd 2013.06.29 1058
RMVXA 메뉴부르면...... 3 file 사신우 2013.06.29 797
RMXP 화면이 검해졌다가 다시 원상태로 되는것 처음빼고 19 포레버아이둔 2013.06.29 845
RMXP 아오오니 캐릭터 칩같은거 3 포레버아이둔 2013.06.29 1253
RMVX 혹시 VX용 3등신 케릭터 뼈대 가지고 계신분 있으신가요? 파멸의인도자 2013.06.29 1160
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