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 5408
277 기타 Base Project 15 아방스 2009.02.05 3063
276 기타 화면 확대 스크립트 12 file 에돌이 2011.07.22 3061
275 장비 장비에 레벨제한 스크립트!! 21 ijsh515 2010.09.19 3040
274 이동 및 탈것 Wachunga님의 XP용 MapLink VX용으로 개조 6 file 허걱 2009.02.13 3040
273 메뉴 윈도우창 크기 조절 스크립트 0.3 5 아방스 2008.01.30 3038
272 스킬 체스트 팝업 3.0 9 file 파이어 2010.12.05 3037
271 장비 아이템 장비시 스킬습득, 'SW_EquipFinisher' by Siot Warrior 19 file 시옷전사 2010.08.31 3029
270 맵/타일 맵상 캐릭터 그래픽 확대 / 축소 이벤트 스크립트 6 시트르산 2010.09.10 3024
269 기타 카지노 슬롯머신 15 file 아방스가 짱 2010.02.28 3023
268 기타 메뉴에서 애니매이션 사용! 12 비극ㆍ 2010.04.19 3022
267 상태/속성 YERD - Custom Status Properties 7 훈덕 2009.11.08 3021
266 기타 땅파기 18 file 비극ㆍ 2010.04.19 3013
265 액터 동료가 따라다니게 하는 스크립트 (Woratana's Caterpillar System) 5 MinaAubert 2012.09.13 3012
264 파티 5인 파티 프로젝트 V1.1 4 file 지나가는떡꼬치 2012.06.30 2988
263 아이템 아이템 무게, 아이템별 소지수 적용 16 file 허걱 2010.11.11 2981
262 기타 KGC 리버스 데미지! 28 루시페르 2009.04.13 2979
261 아이템 드롭 아이템 확장 6 신규회원 2012.02.24 2977
260 기타 [요청자료] 유즈미짱 님께서 요청한 그림표시 입니다. 5 file 허걱 2009.07.08 2976
259 전투 SRPGコンバータ for VX by AD.Bank 습작 2013.05.13 2975
258 액터 (수정)크리쳐 합체, 'SW_CreatureMix' by SiotWarrior 22 file 시옷전사 2010.09.07 2972
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