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 기타 Base Project 15 아방스 2009.02.05 3090
276 타이틀/게임오버 메인 화면을 건너뛰고 시작하는 스크립트 14 아방스 2008.02.01 3089
275 전투 Actor Battler Graphics 13 아방스 2008.03.07 3080
274 장비 장비에 레벨제한 스크립트!! 21 ijsh515 2010.09.19 3074
273 스킬 체스트 팝업 3.0 9 file 파이어 2010.12.05 3070
272 이동 및 탈것 Wachunga님의 XP용 MapLink VX용으로 개조 6 file 허걱 2009.02.13 3065
271 장비 아이템 장비시 스킬습득, 'SW_EquipFinisher' by Siot Warrior 19 file 시옷전사 2010.08.31 3059
270 맵/타일 맵상 캐릭터 그래픽 확대 / 축소 이벤트 스크립트 6 시트르산 2010.09.10 3058
269 기타 메뉴에서 애니매이션 사용! 12 비극ㆍ 2010.04.19 3056
268 메뉴 윈도우창 크기 조절 스크립트 0.3 5 아방스 2008.01.30 3051
267 기타 카지노 슬롯머신 15 file 아방스가 짱 2010.02.28 3045
266 기타 땅파기 18 file 비극ㆍ 2010.04.19 3042
265 상태/속성 YERD - Custom Status Properties 7 훈덕 2009.11.08 3041
264 액터 동료가 따라다니게 하는 스크립트 (Woratana's Caterpillar System) 5 MinaAubert 2012.09.13 3039
263 아이템 아이템 무게, 아이템별 소지수 적용 16 file 허걱 2010.11.11 3033
262 전투 SRPGコンバータ for VX by AD.Bank 습작 2013.05.13 3017
261 아이템 드롭 아이템 확장 6 신규회원 2012.02.24 3017
260 파티 5인 파티 프로젝트 V1.1 4 file 지나가는떡꼬치 2012.06.30 3015
259 액터 (수정)크리쳐 합체, 'SW_CreatureMix' by SiotWarrior 22 file 시옷전사 2010.09.07 2999
258 기타 [요청자료] 유즈미짱 님께서 요청한 그림표시 입니다. 5 file 허걱 2009.07.08 2997
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