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 6657
277 메시지 HG_POP_TEXT (맵 화면에 문자 표시) 4 file 허걱 2011.09.16 3625
276 타이틀/게임오버 타이틀전 공지사항 19 file AYARSBMA 2010.01.23 3626
275 기타 Crissaegrim 농장시스템 한글화 28 file 도심 2009.12.22 3633
274 상점 상점 무기, 방어구 능력치 비교 스크립트! 18 불독 2008.12.25 3647
273 장비 KGC확장장비창 스크립트 15 file 티라엘 2009.03.27 3649
272 기타 낚시 스크립트~(낚시대로 하는 낚시가 아니라 사람을 낚는 낚시 스크립트) 14 file ~AYARSB~ 2010.03.18 3654
271 이름입력 글자조합 (이름생성용) - 수정 12 file 허걱 2009.07.17 3659
270 기타 멥 이름 띄우기 10 신규회원 2012.02.24 3659
269 장비 장비 확장 및 EP 기능 18 만들어보자꾸나 2008.06.10 3677
268 기타 화폐단위 구분해 주는 스크립트 38 file 허걱 2010.04.13 3686
267 기타 회피,명중,크리 스테이트를 작성하는 스크립트 9 카르와푸딩의아틀리에 2009.06.30 3687
266 HUD HUD 스크립트 모음 10 아방스 2010.12.11 3688
265 기타 미니게임테트리스 스크립트 ㅋㅋㅋ 27 file 카르와푸딩의아틀리에 2009.06.30 3702
264 상점 (수정)크리쳐 샵, 'SW_CreatureShop' by Siot Warrior 15 file 시옷전사 2010.09.03 3707
263 맵/타일 타일 바꾸기 13 file 허걱 2009.09.01 3711
262 이동 및 탈것 대각선 이동 스크립트 17 아방스 2009.05.02 3712
261 물반사 효과 32 file RPGbooster 2008.10.08 3733
260 퀘스트 퀘스트 마크 표시용 스크립트 10 file 허걱 2012.05.22 3734
259 이름입력 아이템, 장비, 스킬 이름 색깔 바꾸기 14 까까까 2011.03.04 3753
258 영상 동영상 재생 스크립트.-Game_Film II-(테스트) 7 할렘 2009.02.22 3764
Board Pagination Prev 1 ... 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 ... 32 Next
/ 32