VX 스크립트


  
#===============================================================
# ● [VX] ◦ No Shield, No Defense ◦ □
# * Disable 'Defense' command in battle if actor doesn't equip shield ~*
#--------------------------------------------------------------
# ◦ by Woratana [woratana@hotmail.com]
# ◦ Thaiware RPG Maker Community
# ◦ Released on: 23/01/2009
# ◦ Version: 1.0
#--------------------------------------------------------------
# ◦ How to use:
#--------------------------------------------------------------
# 1) Setup script in setup part below..
# 2) The script will run when it has to~
#=================================================================

class Scene_Battle
 
  EXCEPTION_NOSHIELD = []
  # IDs of actor who can still defense when he/she isn't equipping shield
  # e.g. [1,4,8]
 
 
  alias wora_noshnodef_scebat_sacs start_actor_command_selection
  def start_actor_command_selection
    wora_noshnodef_scebat_sacs
    if @active_battler.armor1_id != 0 or # Equipping Shield?
    EXCEPTION_NOSHIELD.include?(@active_battler.id) # Exception actors
      @actor_command_window.draw_item(2, true)
    else
      @actor_command_window.draw_item(2, false)
    end
  end
 
  alias wora_noshnodef_scebat_updacs update_actor_command_selection
  def update_actor_command_selection
    if Input.trigger?(Input::C) and @actor_command_window.index == 2 and
  @active_battler.armor1_id == 0 and !EXCEPTION_NOSHIELD.include?(@active_battler.id)
      Sound.play_cancel
    else
      wora_noshnodef_scebat_updacs
    end
  end
end

Comment '16'

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 3 습작 2012.12.24 6661
41 전투 커먼이벤트 컷인 스크립트 15 허걱 2009.08.23 3430
40 전투 대미지 MP전환 스테이트 : 수정 => 마나쉴드 7 Evangelista 2009.08.29 2403
39 전투 대미지%MP흡수 스크립트 4 Evangelista 2009.08.31 2298
38 전투 반사 스테이트 -KGC 4 카르와푸딩의아틀리에 2009.09.12 2678
37 전투 사이드뷰배틀에서 찌르기 공격 가능하게 7 078656577er 2009.09.16 3235
36 전투 사이드뷰배틀에서 시각적으로 위치 지정하기 9 file 078656577er 2009.10.14 4927
35 전투 불사신(무적) 스크립트 9 file 미얼 2009.10.29 3229
34 전투 vampyr SBABS-Requiem ABS 9(액알) 101 file 담먹캐 2009.11.01 12034
33 전투 Spin Battle System [완성버젼] 38 file 할렘 2009.11.14 6852
32 전투 파이널 판타지 XIII 배틀 시스템 [출처:RRR포럼] 56 file WolV 2010.02.03 6812
31 전투 전투후렙업시나오는상세창 11 작은샛별 2010.03.07 3140
30 전투 ActBattle 전투 스크립트 13 file 사람이라면? 2010.08.16 5994
29 전투 사이드뷰 애드온 7 비극ㆍ 2010.08.21 6778
28 전투 VX SRPG 한글번역 (최종수정) 26 file 에틴 2010.08.25 7438
27 전투 GubiD's Tactical Battle System 1.5.1.4 (RMVX용) 2 Alkaid 2010.09.03 2875
26 전투 RPG Tankentai SBS 3.4d + ATB 1.2c Kaduki 18 시트르산 2010.09.10 6482
25 전투 Animated Battlers VX 3.4 by DerVVulfman 5 file Alkaid 2010.09.10 3134
24 전투 sbs battler configuration 한글 번역 13 file 시트르산 2010.09.23 4499
23 전투 포켓몬 스크립트 한글화 완료 26 file 서울냥이 2010.10.11 6048
22 전투 RPG tankentai에서의 치명적 문제점을 보완한 스크립트 2 file 톰소여동생 2010.11.03 3132
Board Pagination Prev 1 2 3 4 5 Next
/ 5