XP 스크립트

Source Thread: http://www.hbgames.org/forums/viewtopic.php?f=156&t=16611
                       http://rmvxp.com/showthread.php?t=251

  パラ犬씨의 타이틀 스크립트 1.01을 SDK2용으로 편집한 것입니다.  물론 1.1 이후의 수정사항(세이브파일이 있어도 컨티뉴 무효가 되는 것을 수정이라든가)은 반영되지 않았지만, 스크립트를 보면 굳이 그런 수정이 필요할 것 같지는 않습니다.


#==============================================================================
# Custom Title Screen ver. 1.01
# Script by Paradog Rewritten By Trickster
# http://rpg.para.s3p.net/
#==============================================================================
#--------------------------------------------------------------------------
# * Begin SDK Log
#--------------------------------------------------------------------------
SDK.log("Custom Title Screen", "Paradog/Trickster", 1.01, "3.5.07")

#--------------------------------------------------------------------------
# * Begin SDK Requirement Check
#--------------------------------------------------------------------------
SDK.check_requirements(2.0, [1,2,3,4])

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if SDK.enabled?("Custom Title Screen")

module Para_Title
#--------------------------------------------------------------------------
# * Image Menu
# - Use Images Instead of a Command Window
#--------------------------------------------------------------------------
Image_Menu = true
#--------------------------------------------------------------------------
# * Transparent Command Window
#--------------------------------------------------------------------------
Transparent = false
#--------------------------------------------------------------------------
# * Window Background Opacity
#--------------------------------------------------------------------------
Opacity = 160
#--------------------------------------------------------------------------
# * Horizontal Command Window Alignment
# - set to 0 to override with Position Value
# - 1 left 2 center 3 right
#--------------------------------------------------------------------------
Horizontal_Align = 2
#--------------------------------------------------------------------------
# * Vertical Alignment
# - set to 0 to override with Position Value
# - 1 left 2 center 3 right
#--------------------------------------------------------------------------
Vertical_Align = 0
#--------------------------------------------------------------------------
# * Command Window Position
# - x, y
#--------------------------------------------------------------------------
Position = 0, 288
#--------------------------------------------------------------------------
# * New Game Image Sprite
# - Located in Graphics/Titles
#--------------------------------------------------------------------------
NewGame = 'newgame', 'newgame_active'
#--------------------------------------------------------------------------
# * New Game Position
#--------------------------------------------------------------------------
NewGame_Position = 450, 320
#--------------------------------------------------------------------------
# * Load Image Sprite
# - Located in Graphics/Titles
#--------------------------------------------------------------------------
Load = 'continue', 'continue_active'
#--------------------------------------------------------------------------
# * Load Position
#--------------------------------------------------------------------------
Load_Position = 450, 360
#--------------------------------------------------------------------------
# * End Game Image Sprite
# - Located in Graphics/Titles
#--------------------------------------------------------------------------
End = 'shutdown', 'shutdown_active'
#--------------------------------------------------------------------------
# * End Position
#--------------------------------------------------------------------------
End_Position = 450, 400
#--------------------------------------------------------------------------
# * Blend Type for Sprites
# - 0 normal 1 add 2 subtract
#--------------------------------------------------------------------------
Blend_Type = 0
end

class Scene_Title
#--------------------------------------------------------------------------
# * Main Sprite
#--------------------------------------------------------------------------
alias_method :para_custom_title_main_sprite, :main_sprite
def main_sprite
# The Usual
para_custom_title_main_sprite
# New Game Sprite
@sprite_newgame = Sprite.new
@sprite_newgame.blend_type = Para_Title::Blend_Type
@sprite_newgame.bitmap = RPG::Cache.title(Para_Title::NewGame[0])
@sprite_newgame.x, @sprite_newgame.y = Para_Title::NewGame_Position
# Load Sprite
@sprite_load = Sprite.new
@sprite_load.blend_type = Para_Title::Blend_Type
@sprite_load.bitmap = RPG::Cache.title(Para_Title::Load[0])
@sprite_load.x, @sprite_load.y = Para_Title::Load_Position
# End Sprite
@sprite_end = Sprite.new
@sprite_end.blend_type = Para_Title::Blend_Type
@sprite_end.bitmap = RPG::Cache.title(Para_Title::End[0])
@sprite_end.x, @sprite_end.y = Para_Title::End_Position
end
#--------------------------------------------------------------------------
# * Main Window
#--------------------------------------------------------------------------
alias_method :para_custom_title_main_window, :main_window
def main_window
# The Usual
para_custom_title_main_window
# If Transparent Window Option
if Para_Title::Transparent
# Window Transparent
@command_window.opacity = 0
else
# Set Back Opacity to Defined Value
@command_window.back_opacity = Para_Title::Opacity
end
# Branch By Window Align
case Para_Title::Horizontal_Align
when 0
@command_window.x = Para_Title::Position[0]
when 1
@command_window.x = 0
when 2
@command_window.x = (640 - @command_window.width) / 2
when 3
@command_window.x = 640 - @command_window.width
end
# Branch By Window Vertical Align
case Para_Title::Vertical_Align
when 0
@command_window.y = Para_Title::Position[1]
when 1
@command_window.y = 0
when 2
@command_window.y = (480 - @command_window.height) / 2
when 3
@command_window.y = 480 - @command_window.height
end
# Return if not image menu
return if not Para_Title::Image_Menu
# Set Command Window Invisible
@command_window.visible = false
# If Continue Enabled
if @continue_enabled
# Load Bitmap
@sprite_load.bitmap = RPG::Cache.title(Para_Title::Load[1])
else
# Set Load Opacity
@sprite_load.opacity = 160
@sprite_newgame.bitmap = RPG::Cache.title(Para_Title::NewGame[1])
end
end
#--------------------------------------------------------------------------
# — Update
#--------------------------------------------------------------------------
alias_method :para_custom_title_update, :update
def update
# The Usual
para_custom_title_update
# Return if not image menu
return if not Para_Title::Image_Menu
# If Input
if Input.repeat?(Input::UP) or Input.repeat?(Input::DOWN)
# Reset All
@sprite_newgame.bitmap = RPG::Cache.title(Para_Title::NewGame[0])
@sprite_load.bitmap = RPG::Cache.title(Para_Title::Load[0])
@sprite_end.bitmap = RPG::Cache.title(Para_Title::End[0])
# Brach by command window
case @command_window.index
when 0 # new game
@sprite_newgame.bitmap = RPG::Cache.title(Para_Title::NewGame[1])
when 1 # load
@sprite_load.bitmap = RPG::Cache.title(Para_Title::Load[1])
when 2 # exit
@sprite_end.bitmap = RPG::Cache.title(Para_Title::End[1])
end
end
end
end
#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end



List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
24 타이틀/게임오버 타이틀 화면 커스터마이즈 (타이틀 메뉴 바꾸는 스크립트) 9 file №1 2012.08.04 4390
23 타이틀/게임오버 코아 코스튬씨의 타이틀 랜덤출력 1.5를 SDK2용으로 편집한 것(수정). file Alkaid 2010.09.29 1753
» 타이틀/게임오버 パラ犬씨의 타이틀 화면 커스터마이즈를 SDK2용으로 편집 by Trickster Alkaid 2010.09.29 1588
21 타이틀/게임오버 타이틀 화면 커스터마이즈 1.11 by パラ犬 3 Alkaid 2010.09.29 2247
20 타이틀/게임오버 타이틀 랜덤 출력 기능 1.5 5 file 코아 코스튬 2010.09.29 2203
19 타이틀/게임오버 타이틀을 아오오니처럼 만들어보자! 43 file Tassy 2010.06.02 5427
18 타이틀/게임오버 [펌]색다른 게임오버 스크립트 14 file 또라에몽 2010.05.09 4265
17 타이틀/게임오버 죽엇을경우 마을로이동하기 스크립트 16 file 백호 2009.02.22 3325
16 타이틀/게임오버 타이틀 화면 메뉴 변경 24 file 백호 2009.02.22 5586
15 타이틀/게임오버 타이틀음악 백호 2009.02.22 1410
14 타이틀/게임오버 심심해서 구현해본 타이틀음악만으로 게임 플레이하기 2 백호 2009.02.22 1621
13 타이틀/게임오버 타이틀 아주 미묘한 효과 5 백호 2009.02.22 1857
12 타이틀/게임오버 게임오버 화면 에서 커맨드 윈도우 스크립트 12 file 백호 2009.02.21 3031
11 타이틀/게임오버 타이틀과 타이틀 BGM 랜덤으로 변경하는 스크립트 2 file 백호 2009.02.21 1045
10 타이틀/게임오버 애니메이션을 타이틀 화면에서 이용 15 file 백호 2009.02.21 3340
9 타이틀/게임오버 맵화면을 타이틀에 표시 백호 2009.02.21 1648
8 타이틀/게임오버 타이틀 가기전에 오프닝 이벤트 시작하기?! 13 file 백호 2009.02.21 3629
7 타이틀/게임오버 타이틀 화면 연출 4 file 백호 2009.02.21 2286
6 타이틀/게임오버 타이틀 화면전 로고를 띄우는 스크립트 9 백호 2009.02.21 2728
5 타이틀/게임오버 타이틀 화면에 옵션을 추가하는 스크립트 2 file 백호 2009.02.21 2091
Board Pagination Prev 1 2 Next
/ 2