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
721 이동 및 탈것 그래픽 변경 데쉬 3 file 백호 2009.02.22 2499
720 Fog of War 4 file 실마릴 2008.06.19 2498
719 전투 전투 결과 화면 개조 스크립트 10 file 백호 2009.02.21 2496
718 기타 ABS 몬스터 HP 게이지 바 11 백호 2009.02.22 2485
717 기타 맵 이동시 로딩 그림 표시 14 file 백호 2009.02.21 2479
716 장비 장비창업그레이드 ps인간 2009.01.23 2478
715 HUD MOG_Active_Hud 3 file Bera 2010.09.11 2468
714 기타 [신기술 체험] 마우스 사용 심플액션 7 file 백호 2009.02.22 2467
713 전투 배틀 스테이터스·클리어 디자인 13 file 백호 2009.02.21 2467
712 HUD 머리위에 직업명을 표시해줍니다... 9 file 제로스S2 2009.08.03 2465
711 기타 대화 글씨가 한글자씩 나오는 스크립트 2 백호 2009.02.22 2464
710 전투 GubiD's Tactical Battle System 1.5.1.4 (RMXP용) GTBS 2 Alkaid 2010.09.03 2456
709 전투 전투 카메라 스크립트 5 file 백호 2009.02.21 2454
708 스킬 스킬북 스크립트 8 WMN 2008.03.17 2452
707 메뉴 1인용 메뉴 스크립트 6 WMN 2008.03.17 2450
706 기타 업데이트 (죽었을경우부활 )스크립트한글화 2 by향온 2011.09.27 2438
705 [알피지2님 제공] 발소리 스크립트 9 file 아방스 2007.11.09 2438
704 상태/속성 Cool Edited Status Screen. 10 아방스 2009.01.12 2430
703 기타 [신기술 체험] 페스트 채팅 17 file 백호 2009.02.22 2412
702 이동 및 탈것 8방향 스크립트 12 file 백호 2009.02.21 2412
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ... 52 Next
/ 52