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 전투 전투중에 장비들 교체하기 file 레이스89 2017.08.19 592
173 전투 전투 관련 횟수 취득 스크립트 백호 2009.02.21 783
» 전투 SG_Attack Break by sandgolem (SDK호환) 백호 2009.02.22 813
171 전투 Single/All Target Switching by RPG Advocate 백호 2009.02.22 816
170 전투 Stealing/Mugging/Scanning 6.0 Final by Trickster (SDK호환) file 백호 2009.02.22 885
169 전투 전투의 커맨드에 따라 능력치를 상승 백호 2009.02.22 904
168 전투 배틀 포인트 1 백호 2009.02.22 918
167 전투 위치보정스크립트 한글화 1 백호 2009.02.22 922
166 전투 S.G DamageShield Script 백호 2009.02.22 935
165 전투 랜덤 전투음악 by Fomar0153@rmxp.org 1 백호 2009.02.22 1008
164 전투 방어시에 속성 저항,스테이트무시 스크립트 1 백호 2009.02.22 1017
163 전투 SG_Auto battle by sandgolem (SDK호환) 백호 2009.02.22 1031
162 전투 FFX, X-2, FFXII 식으로 대미지 표시하기 by squall@rmxp.org 백호 2009.02.22 1115
161 전투 마법검 스크립트 file 백호 2009.02.21 1116
160 전투 레벨업 시스템 제거 스크립트 file 백호 2009.02.21 1117
159 전투 배틀샵 스크립트 1 백호 2009.02.22 1126
158 전투 전투에서도 맵 BGM 연결하는 스크립트 2 file 백호 2009.02.21 1129
157 전투 물리친 적의수 표시 file 백호 2009.02.21 1131
156 전투 FF10 전투 대미지 공식 by hydro@rmxp.org 백호 2009.02.22 1140
155 전투 A-battle 수정 file 백호 2009.02.21 1155
Board Pagination Prev 1 2 3 4 5 6 7 8 9 Next
/ 9