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 원경 원경(파노라마) 바꾸기 9 file 허걱 2010.05.28 3369
456 기타 [자작]게임 실행시 파일 체크 프로그램. 또는 파일 실행기. 16 file NightWind AYARSB 2010.05.20 3192
455 스킬 [ultimate series]스킬,아이템 데미지계산식을 자기입맛에 맞게 고치는 스크립트 16 file EuclidE 2010.05.04 4373
454 메시지 직접 생각해서 만든 "문장 속 특정 단어 색 바꾸기" 10 file X.66 2010.04.28 4363
453 메뉴 매우 간단명료한 메뉴. 32 file 비극ㆍ 2010.04.23 6618
452 이동 및 탈것 자동 이동 시스템 20 file 허걱 2010.04.21 4303
451 기타 전투후 이어지는 베경음 9 비극ㆍ 2010.04.19 2190
450 그래픽 토마스 에디슨(파티클 엔진 비슷) 9 file 비극ㆍ 2010.04.19 3431
449 기타 Lock Screen 3 비극ㆍ 2010.04.19 2012
448 기타 레벨업 이펙트... 20 비극ㆍ 2010.04.19 3768
447 기타 세이브 포인트 2 비극ㆍ 2010.04.19 2518
446 기타 그림자 없애기... 3 비극ㆍ 2010.04.19 1642
445 기타 메뉴에서 애니매이션 사용! 12 비극ㆍ 2010.04.19 3022
» 타이틀/게임오버 타이틀에서 홈페이지 연결 17 비극ㆍ 2010.04.19 2271
443 기타 스크린샷 기능 14 비극ㆍ 2010.04.19 2090
442 메뉴 Final Fantasy VII Menu System 8 비극ㆍ 2010.04.19 3506
441 기타 땅파기 18 file 비극ㆍ 2010.04.19 3013
440 스킬 Learn Skills By Use 10 비극ㆍ 2010.04.19 2037
439 맵/타일 Map Saver 17 file 비극ㆍ 2010.04.18 2415
438 HUD Zelda Health System 11 file 비극ㆍ 2010.04.18 2850
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