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
397 기타 VX서비스팩1 6 훈덕 2009.02.03 2831
396 전투 VX에서 전투배경을 XP스타일로 나오게 하는 스크립트 7 아방스 2008.01.25 4861
395 기타 VX에서 포그 그래픽을 사용하자 16 아방스 2008.01.31 3911
394 이동 및 탈것 VX의 기존 대쉬 기능 없애기 8 BAYONET 2008.05.18 2576
393 이동 및 탈것 Wachunga님의 XP용 MapLink VX용으로 개조 6 file 허걱 2009.02.13 3065
392 전투 WGB배틀 시스템. 59 file 카르와푸딩의아틀리에 2009.06.30 8800
391 제작도구 Window Maker by Jet 12 Alkaid 2010.09.26 2465
390 제작도구 Windowskin generator VX by Aindra and Woratana 1 file Alkaid 2010.09.18 1815
389 기타 Wora's Christmas Giftbox 2008 4 file Alkaid 2010.09.18 1764
388 HUD X 와 Y 좌표 표시 해주는 스크립트 9 아방스 2009.07.03 2778
387 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4261
386 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3592
385 스킬 Yanfly Engine RD - Custom Dmg Formulas (커스텀 데미지, 관계도) 6 file communnn 2011.10.25 3430
384 스킬 Yanfly Engine RD - Display Skill Query (스킬 상세 정보) 8 file communnn 2011.10.24 3439
383 상태/속성 YERD - Custom Status Properties 7 훈덕 2009.11.08 3044
382 장비 YERD - Extra Equipment Options ReDONE 7 훈덕 2009.11.08 2330
381 메뉴 YERD - 시스템 옵션 5 file 훈덕 2009.11.08 3164
380 메뉴 YERD - 커먼 이벤트 메뉴 4 file 훈덕 2009.11.08 3867
379 상점 YERD - 커먼이벤트 샵 12 file 훈덕 2009.11.08 4004
378 스킬 YERD - 커스텀 스킬 이펙트 13 file 훈덕 2009.11.08 4119
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 ... 32 Next
/ 32