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 6203
41 기타 Rataime's Multi Demo 1 file 백호 2009.02.22 834
40 기타 Crafting/Recipe system script by Axe Man Deke 백호 2009.02.22 829
39 기타 SG_Transfer Player Music Fix v2 by sandgolem (SDK호환) 1 백호 2009.02.22 824
38 기타 SG_Window Control v2 by sandgolem 백호 2009.02.22 823
37 전투 Single/All Target Switching by RPG Advocate 백호 2009.02.22 816
» 전투 SG_Attack Break by sandgolem (SDK호환) 백호 2009.02.22 814
35 스킬 Skill Shop by SephirothSpawn file 백호 2009.02.22 813
34 기타 Monster Arena by trickster file 백호 2009.02.22 812
33 기타 스크립트로 프리윈도우 예제 4 file 백호 2009.02.21 812
32 저장 Inn & Save Point System by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 811
31 기타 Weather Script 1.02 by ccoa 1 file 백호 2009.02.22 810
30 장비 Advanced Equip Window 백호 2009.02.22 806
29 기타 SG_Call Script Fix by sandgolem (SDK호환) 백호 2009.02.22 804
28 기타 SG_Multiple Currencies v3 by sandgolem (SDK호환) 백호 2009.02.22 803
27 이동 및 탈것 Advanced Player Movement by SephirothSpawn (SDK호환) 1 file 백호 2009.02.22 801
26 기타 Hero Databass 4 file 백호 2009.02.22 797
25 기타 Selected phyolomortis.com scripts 1 file 백호 2009.02.22 789
24 기타 killer님 요청하신 스크립트입니다. 1 나뚜루 2009.02.21 784
23 전투 전투 관련 횟수 취득 스크립트 백호 2009.02.21 783
22 기타 Damage Reductions by SephirothSpawn (SDK호환) 1 백호 2009.02.22 779
Board Pagination Prev 1 ... 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 Next
/ 52