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
457 스킬 스킬, 아이템 적아 구분 없이 쓰기 10 file EuclidE 2011.10.16 2900
456 스킬 스킬 필요조건에 살짝 손대봤습니다. -- 수정 18 아이미르 2011.03.23 2499
455 스킬 스킬 필요 조건(번역) 23 file 훈덕 2009.02.03 4644
454 전투 스킬 커맨드 스크립트 16 아방스 2009.02.05 4535
453 상점 스킬 샾 스크립트 2.0 48 아방스 2008.03.05 6628
452 스킬 스킬 사용시 컷인 연출 (번역) 26 file 훈덕 2009.02.05 5387
451 기타 스크립트로 커먼 이벤트 실행 [수정] 3 허걱 2009.08.17 2311
450 기타 스크립트강좌 4 아하!잘봤어요. 2009.05.04 2158
449 기타 스크린샷 기능 14 비극ㆍ 2010.04.19 2090
448 이동 및 탈것 스위치 on일때 못 움직이게...(이동고정) 6 허걱 2009.07.14 2322
447 메시지 소설풍(노벨풍) 문자 스크립트 31 file 맛난호빵 2011.01.03 5551
446 저장 세이브/로드가 불가능한 스크립트!!! 9 file ~AYARSB~ 2010.03.08 3298
445 기타 세이브 포인트 2 비극ㆍ 2010.04.19 2518
444 저장 세이브 파일 개수 16개로 늘리기 (기본 세이브 엔진용) 1 file Bunny_Boy 2015.09.07 815
443 저장 세이브 시스템 확장 스크립트 9 file 신규회원 2012.02.24 3314
442 기타 설명하기 힘든 스크립트 (스크린샷 확인) 10 file 사람이라면? 2010.08.16 3818
441 직업 서브클래스 선택 시스템 Subclass Selection System 7 file 카르와푸딩의아틀리에 2009.06.30 3942
440 새로운 종류의 세이브 스크립트!! 8 Man... 2008.10.28 3517
439 전투 새로운 전투돌입효과 29 file RPGbooster 2008.10.08 5076
438 맵/타일 새로운 월드맵 만들기 (로맨싱사가풍) 37 file 078656577er 2009.10.09 6151
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... 32 Next
/ 32