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 6202
721 아이템 소지/구입 아이템 갯수 99개 이상 가능(약간 수정) 2 백호 2009.02.22 1104
720 변수/스위치 셀프 스위치 조작 10 file 허걱 2009.01.30 2657
719 저장 세이브파일 망가뜨리기 by RPG Advocate 3 백호 2009.02.22 2657
718 저장 세이브 슬롯 갯수 증가와 세이브 덮어씌울 때 확인 by RPG Advocate 5 백호 2009.02.22 1507
717 저장 세이브 & 로드 화면 개조 스크립트 file 백호 2009.02.21 1962
716 스킬 선택 스킬 스크립트 4 file 백호 2009.02.21 1632
715 HUD 새로운방법의 맵이름 표시 31 file 백호 2009.02.21 4618
714 이동 및 탈것 새로운 픽셀 이동 스크립트 27 file 케나이 2010.04.10 3499
713 메뉴 새로운 메뉴 시스템 을 한글화 및 약간 개조 3 file 백호 2009.02.21 2203
712 메뉴 새로운 메뉴 15 file 또라에몽 2010.07.17 5307
711 메뉴 새로운 cms 4 file 백호 2009.02.22 2118
710 상태/속성 상태창 표시 Ver 8.0 // 글씨 위치 변경 기능 + 변수 한글 7 file 코아 코스튬 2010.09.24 2565
709 상점 상점에서 Q.W버튼으로 순서를 바꿈!상점스텟 상세화 업그레이드 1 백호 2009.02.21 1714
708 상점 상점에 물방,마방 구별, 무기의 능력치 상세화 5 file 백호 2009.02.21 2513
707 상점 상점아템 가격변동(중뷁?) 4 캉쿤 2011.09.14 2188
706 상점 상점 직접 장비 스크립트 1 file 백호 2009.02.21 1771
705 상점 상점 시세 변동 스크립트 수정판 3 백호 2009.02.22 1518
704 기타 상점 변동시세 적용 스크립트 3 file 백호 2009.02.21 1163
703 상점 상점 메뉴 개조시킨 스크립트 [한글] 35 file 백호 2009.02.21 3567
702 상점 상점 메뉴 개조시킨 스크립트 - 수정 - 2 file 백호 2009.02.21 1819
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