XP 스크립트

http://www.gamebaker.com/rmxp/script-xs/attack-break.htm
전투중 공격명령을 사용하지 못하도록 하는 상태로 만들 수 있게 합니다.


#==========================================================================
# ** SG Attack Break
#==========================================================================
# sandgolem
# Version 1
# 25.06.06
#==========================================================================

Scene_Battle::SG_AttackBreak_State = 21

#==========================================================================
#
# To check for updates or find more script-xs, visit:
# http://www.gamebaker.com/rmxp/script-xs/
#
# To use this script-x, copy it and insert it in a new section above "Main",
# under the default script-xs, and the SDK if you're using it.
#
# Have problems? You can leave me a message at:
# http://www.gamebaker.com/users/sandgolem
#
#==========================================================================

#--------------------------------------------------------------------------
# * SDK Log Script-x
#--------------------------------------------------------------------------

begin
SDK.log("SG Attack Break", "sandgolem", 1, "25.06.06")
if SDK.state("SG Attack Break") != true
@sg_attackbreak_disabled = true
end
rescue
end

#--------------------------------------------------------------------------
# * Begin SDK Enable Test
#--------------------------------------------------------------------------
if !@sg_attackbreak_disabled

class Scene_Battle
alias sandgolem_attackbreak_battle_startph4 start_phase4
def start_phase4
sandgolem_attackbreak_battle_startph4
for i in $game_party.actors
if i.current_action.kind == 0 && i.current_action.basic == 0 &&
i.state?(SG_AttackBreak_State)
i.current_action.basic = 3
end
end
end

alias sandgolem_attackbreak_battle_ph3setcom phase3_setup_command_window
def phase3_setup_command_window
sandgolem_attackbreak_battle_ph3setcom
if @active_battler.state?(SG_AttackBreak_State)
@actor_command_window.disable_item(0)
@active_battler.sg_command_broken = true
elsif !@active_battler.sg_command_broken
@actor_command_window.refresh
end
end

alias sandgolem_attackbreak_battle_uph3basic update_phase3_basic_command
def update_phase3_basic_command
if Input.trigger?(Input::C)
if @actor_command_window.index == 0 &&
@active_battler.state?(SG_AttackBreak_State)
$game_system.se_play($data_system.buzzer_se)
return
end
end
sandgolem_attackbreak_battle_uph3basic
end
end

#--------------------------------------------------------------------------
# * End SDK Enable Test
#--------------------------------------------------------------------------
end


** 이하의 부분은 Attack Break, Item Break, Skill Break 스크립트 추가 후 추가하는 부분입니다.(단, 해당 스크립트를 하나 이상 쓰는 경우 이 부분을 중복해서 쓰지 않아야 합니다)

class Game_Actor
attr_accessor :sg_command_broken
end

class Scene_Battle
alias sandgolem_commandbreak_battle_sph2 start_phase2
def start_phase2
sandgolem_commandbreak_battle_sph2
$game_party.actors.each { |i| i.sg_command_broken = nil }
end
end

Who's 백호

?

이상혁입니다.

http://elab.kr


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 6153
174 전투 [액알]neo_a-rpg_module_1[1][1].2 스크립트 83 file 은빛바람 2009.10.03 8298
173 전투 [신기술 체험] 강회된 횡스크롤 액알 13 file 백호 2009.02.22 6841
172 전투 액알 스크립트 24 백호 2009.02.22 6013
171 전투 ABS_v3액션 알피지 46 file 알피지GM 2010.03.07 5806
170 전투 SBABS 버전3.2 - 액알 스크립트 시스템 설명 13 아방스 2007.11.09 5685
169 전투 [RTAB]HP/SH/EXP 게이지바 ver 1.00 44 file 환상 러브텔 2010.05.22 5338
168 전투 사이드뷰 배틀 (2003 형식으 전투)| 12 file 아방스 2007.11.09 4744
167 전투 사이드뷰 방식 스크립트. 8 file 백호 2009.02.21 4638
166 전투 ABP 액알 (Action Battle Player) 14 file 백호 2009.02.22 4557
165 전투 XAS 여러가지버전. 9 §포뇨§ 2010.02.23 4395
164 전투 XAS Hero Edition v3.82 19 아방스 2010.12.27 4346
163 전투 사이드뷰 전투(보행그래픽) 15 file 백호 2009.02.21 4244
162 전투 ATB시스템 입니다. [스샷 첨부] 17 백호 2009.02.22 4182
161 전투 깔끔한형식의 Asan'Tear배틀시스탬 4 file 콩밥 2010.09.29 4124
160 전투 에너미들도 게이지바 달고싶다~!! 14 file 백호 2009.02.21 4100
159 전투 중복일지도 모르는 ATB 전투 11 file 백호 2009.02.22 4057
158 전투 xas히어로에디션 3.4 14 ps인간 2009.01.04 4044
157 전투 Blizz-ABS 1.95 27 아방스 2008.03.05 4028
156 전투 일본사이트에서 찾은 턴제 스크립트 23 file 백호 2009.02.21 3997
155 전투 RTAB 1.16ver 12 file 백호 2009.02.22 3960
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9