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 기타 레벨9999만들기스크립 23 해파리 2009.04.10 3344
720 퀘스트 퀘스트창 예제 21 지나가던사람 2009.04.05 5743
719 메뉴 [자작]명성치 사용 스크립트 16 Rainsy 2009.03.22 3390
718 이동 및 탈것 반칸 이동하기 14 file 느싱 2009.03.09 3461
717 맵/타일 [유니크급] RPG XP 게임을 3D화로 보자! Neo Mode7 script / 52 file 쉴더 2009.02.28 9447
716 기타 8방향 마우스 스크립트 10 file 아방스 2009.02.28 4063
715 기타 4방향 마우스 스크립트 12 file 아방스 2009.02.28 2666
714 액터 (killer님 요청)자동회복 스크립트 3 나뚜루 2009.02.22 2575
713 기타 멤버 교체 11 file 백호 2009.02.22 2529
712 메뉴 메뉴등에서 움직이는 엑터 9 file 백호 2009.02.22 3164
711 파티 파티 확장 11 file 백호 2009.02.22 3188
710 스킬 제한시간내 커맨드를 입력해야 스킬이 발동~ 3 file 백호 2009.02.22 2614
709 기타 회복으로 데미지를 받는 좀비 스크립트 7 백호 2009.02.22 2010
708 기타 플레이어 발소리 스크립트 20 백호 2009.02.22 3108
707 아이템 CSSR14-아이템 합성 3 file 백호 2009.02.22 2834
706 장비 CSSR8-장비품 생산&강화 시스템 18 file 백호 2009.02.22 3959
705 장비 CSSR5-장비품 중량 시스템 1 file 백호 2009.02.22 1735
704 장비 CSSR1-장비품 어빌리티포인트제 file 백호 2009.02.22 1600
703 전투 CSSR6-스태미너 시스템 1 file 백호 2009.02.22 2339
702 기타 Multiple Languages v2 by SephirothSpawn (SDK호환) file 백호 2009.02.22 1405
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