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
27 타이틀/게임오버 Title Skip System : 타이틀 스킵 file 허걱 2014.03.19 1510
26 타이틀/게임오버 코아 코스튬씨의 랜덤 타이틀 스크립트를 VX용으로 변환 2 Alkaid 2012.09.14 1701
25 타이틀/게임오버 타이틀에 날씨 효과 주는 스크립트 (Melmarvin's Rainy Title Screen) 6 MinaAubert 2012.09.13 2323
24 타이틀/게임오버 [NO.0 간단 스크립트] 타이틀에 제작자 정보 올려보기 14 file NO.0 2011.01.30 3362
23 타이틀/게임오버 KGC_TitleDirection 알기쉽게 설명추가 5 파이어 2011.01.03 2662
22 타이틀/게임오버 Graphics Load System 1.0.1 14 file NightWind AYARSB 2010.06.10 3230
» 타이틀/게임오버 타이틀에서 홈페이지 연결 17 비극ㆍ 2010.04.19 2271
20 타이틀/게임오버 타이틀전 공지사항 19 file AYARSBMA 2010.01.23 3583
19 타이틀/게임오버 Rafidelis KaHh Box 타이틀화면 20 카르와푸딩의아틀리에 2009.08.23 5004
18 타이틀/게임오버 타이틀 공지 37 file 허걱 2009.08.10 4748
17 타이틀/게임오버 까만화면으로 시작하기 27 file 허걱 2009.07.04 4528
16 타이틀/게임오버 맵 타이틀 스크립트 48 아방스 2009.06.17 5547
15 타이틀/게임오버 [자작] 타이틀 화면 없이 게임을 시작하자! Title Skiper 29 케류 2009.04.05 4423
14 타이틀/게임오버 타이틀화면 커스터마이즈 29 file 可わいい 2009.03.16 6141
13 타이틀/게임오버 륀느님 요청] 전투 전멸후 Game over없이 특정위치로 이동 10 Last H 2009.02.24 2834
12 타이틀/게임오버 타이틀 업그레이드 byMOG 16 *ps인간 2009.01.26 5658
11 타이틀/게임오버 타이틀 메뉴 스크립트 50 아방스 2009.01.20 7503
10 타이틀/게임오버 타이틀 화면에 매뉴창 이동방법 5 석산 2009.01.06 2824
9 타이틀/게임오버 New Title Screen 3 Man... 2008.10.28 1832
8 타이틀/게임오버 Random Title Screen 2 Man... 2008.10.28 1454
Board Pagination Prev 1 2 Next
/ 2