VX 스크립트

#==============================================================================
#    Website Launch from Title
#    Version: 1.0
#    Author: modern algebra (rmrk.net)
#    Date: April 5, 2010
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Description:
#    This simple script adds the option to launch a website from a command on
#   the title screen. Only works in Windows, but RMVX only runs in Windows
#   anyway, so that shouldn't be a problem.
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Instructions:
#    Just go down to the configurable constants area at line 17 and read the
#   instructions there to see what each constant is for. Set them accordingly
#==============================================================================
# ** CONFIGURABLE CONSTANTS
#==============================================================================
MAWLT_COMMAND = "RMRK"        # The name of the new command
MAWLT_INDEX = 2               # Where the new command appears in the window
MAWLT_URL = "http://rmrk.net" # The full URL of the website to be launched
MAWLT_Y_OFFSET = -24          # Pixels Y coordinate of the window is offset by

#==============================================================================
# ** Window Command
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    new accessor variable - mawlt_index_override
#    new method - mawlt_add_command
#    aliased method - draw_item
#==============================================================================

class Window_Command
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Public Instance Variables
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  attr_accessor :mawlt_index_override
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Add Command
  #    index   : the position to add the command in
  #    command : the command to add
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  def mawlt_add_command (index, command)
    return unless @commands
    @commands.insert (index, command)
    @item_max += 1
    self.y += MAWLT_Y_OFFSET
    self.height = self.height + WLH
    create_contents
    disabled = []
    @wlt_disabled_commands = [] unless @wlt_disabled_commands
    @wlt_disabled_commands.each { |x| disabled.push (x >= index ? x + 1 : x) }
    @wlt_disabled_commands.clear
    refresh
    disabled.each { |x| draw_item (x, false) }
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Draw Item
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mal_wlt_drwitm_8yh1 draw_item
  def draw_item (index, enabled = true, *args)
    mal_wlt_drwitm_8yh1 (index, enabled, *args) # Run Original Method
    @wlt_disabled_commands = [] unless @wlt_disabled_commands
    @wlt_disabled_commands.push (index) if !enabled && !@wlt_disabled_commands.include? (index)
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Index
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias malg_wlt_indxovrd_8km1 index
  def index (*args)
    indx = malg_wlt_indxovrd_8km1 (*args) # Run Original Method
    return indx if !@mawlt_index_override || !Input.trigger? (Input::C) || indx < MAWLT_INDEX
    return indx - 1 if indx > MAWLT_INDEX
    return -1
  end
end

#==============================================================================
# ** Scene Title
#++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#  Summary of Changes:
#    aliased methods - create_command_window, update
#==============================================================================

class Scene_Title
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Create Command Window
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias malgbr_wsitelaunch_crtcmmnd_9ol2 create_command_window
  def create_command_window (*args)
    malgbr_wsitelaunch_crtcmmnd_9ol2 (*args) # Run Original Method
    @command_window.mawlt_add_command (MAWLT_INDEX, MAWLT_COMMAND)
    @command_window.index += 1 if @command_window.index >= MAWLT_INDEX
  end
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  # * Update
  #~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  alias mawlt_update_7uj2 update
  def update (*args)
    @command_window.mawlt_index_override = true
    mawlt_update_7uj2 (*args)
    @command_window.mawlt_index_override = false
    if Input.trigger? (Input::C) && @command_window.index == MAWLT_INDEX
      Sound.play_decision
      system("start #{MAWLT_URL}")
    end
  end
end
주석 말고 제일 첫 명령어 부분을 바꾸면 될듯함....

 

출처:rmrk

Comment '17'
  • ?
    NightWind AYARSB 2010.04.19 23:55

    그러니까.. 음.. 제작자 같은 표시할떄.. 같은 종류로 쓰이거나

    온라인 게임일경우에는 회원가입을 표시하게 되는? 그런 것 같은데..

  • profile
    비극ㆍ 2010.04.19 23:56

    그냥 타이틀에 새로하기 불러오기 끝내기 아방스 이렇게 추가해서 아방스 누르면

    아방ㅅ 홈페이지가 뜨는거욥ㅇㅅㅇ....

  • ?
    파이어 2010.04.21 18:27

    흠.... 어떻게 쓰면 좋을까요?

  • ?
    blades 2010.04.29 20:05

    #뒤에다가 인가요?그리고 틀 글귀라고 하심은?세번째것은 아방스로 연결하면 되겠고..두번째것은 뭐죠?

  • profile
    비극ㆍ 2010.04.21 18:46

    MAWLT_COMMAND = "RMRK"        # The name of the new command
    MAWLT_INDEX = 2               # Where the new command appears in the window
    MAWLT_URL = "http://rmrk.net" # The full URL of the website to be launched
    이 부분을 바꾸시면 됩니다.

    첫번째꺼는, 타이틀에 틀 글귀. 두번째것은 됬고, 세번째것은. 홈페이지 주소를 써주시면 됩니다.


     

  • ?
    화염 2010.05.09 12:13

    잘되네여

  • ?
    덕후 2010.05.23 20:05

    난 왜.. 검은 창하나만 뜨지;;?응? 이곳에 추가하세요인가 거기다가 넣었는데..

  • ?
    강진수 2010.06.02 13:16

    전 왜 CMD창만 뜨지요..?

  • ?
    세팔이 2010.06.20 12:50

    주소 앞에다 Explorer 넣어주세요..ㅋ

  • ?
    세팔이 2010.06.20 12:51

    도스가 뜰떄는 주소 앞에다 Explorer 를 붙여넣어주세요ㅕ

    MAWLT_COMMAND = "RMRK"        # The name of the new command
    MAWLT_INDEX = 2               # Where the new command appears in the window
    MAWLT_URL = "Explorer http://rmrk.net" # The full URL of the website to be launched

    이런식으로요

     

    ㅋㅋ 비베공부하길 잘한듯 ㅋㅋ

  • ?
    빌게이츠 2010.07.20 13:31

    ㄴㅇ

  • ?
    카즈마! 2010.07.25 01:51

    온라인 VX에 쓰이면 좋을 것 같군여..

  • profile
    라구나 2010.10.27 15:27

    감사합니다 ㅎ

  • ?
    rsh9894 2011.05.29 17:39

    감사합니다^^ 이거 정말 찾고있었어요

  • ?
    슬픈미소 2011.08.18 01:31

    감사해요 ㅋㅋ

  • ?
    노바로스 2013.03.11 15:18
    감사합니다!!!
  • ?
    아뷸란쉬 2013.11.05 19:44
    고마워요 잘 쓸게용

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 5398
197 키입력 답을 입력하는 텍스트박스 스크립트!! 21 file 좀비사냥꾼 2009.03.29 4206
196 기타 개인판타지메뉴+업그래이드 배틀 23 file 콩밥 2010.08.02 4211
195 액터 스탯 시스탬 29 츠키아 2008.08.08 4214
194 기타 아이콘 캐릭터 17 file 허걱 2010.02.28 4225
193 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4226
192 메시지 네오 메시지 시스템 최신 17 file RPGbooster 2008.10.08 4251
191 기타 (이거 정말 좋군요) 말이나 용을 탈수있게 하는 스크립트. 31 file 아방스가 짱 2010.02.28 4261
190 기타 [자작] 횡스크롤 점프스크립트 18 file 좀비사냥꾼 2009.04.03 4276
189 상태/속성 상태 메뉴 변경 스크립트 45 죄송해욧! 2008.03.01 4284
188 메시지 MultiMessage 멀티 메시지 스크립트 9 file 허걱 2010.02.23 4296
187 이동 및 탈것 자동 이동 시스템 20 file 허걱 2010.04.21 4303
186 기타 집안의 가구를 내마음대로 데코레이션하기 15 file EuclidE 2010.09.18 4303
185 맵/타일 VX Mode 7 스크립트!!!! 42 file Tofuman 2009.01.07 4306
184 그래픽 밤낮 변환 VX용 26 독도2005 2008.03.23 4314
183 기타 심플 마우스 시스템 1.5 애드온 11 file RMdude 2009.02.11 4325
182 메뉴 [자작]명성치 사용 시스템(메뉴 출력) 16 Rainsy 2009.03.22 4360
181 메뉴 CogWheelBars 시스템. 13 file 할렘 2009.02.20 4362
180 메시지 직접 생각해서 만든 "문장 속 특정 단어 색 바꾸기" 10 file X.66 2010.04.28 4363
179 HUD 맵 이름 스크립트 21 file 개임맨 2010.10.03 4365
178 맵/타일 타일셋 변경 10 file 만들어보자꾸나 2008.06.08 4370
Board Pagination Prev 1 ... 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 Next
/ 32