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 5407
237 스킬 미완성 구버전. 2칸 위에 있는 글을 이용해주세요. 7 Last H 2009.02.23 1925
236 전투 반사 스테이트 -KGC 4 카르와푸딩의아틀리에 2009.09.12 2661
235 스킬 발상의전환 : 스킬과 아이템의 공격횟수를 동시에 증가시키기 14 star211 2010.02.16 3179
234 그래픽 밤낮 변환 VX용 26 독도2005 2008.03.23 4314
233 그래픽 밤낮 변환 스크립트 18 kram3 2008.01.31 3762
232 기타 밤낮의 변화에 따른 전투배경의 변화 스크립트 10 file 카르와푸딩의아틀리에 2009.07.01 2948
231 장비 방어구 착용시 최대HP, MP증가 스크립트(턴알) 3 file 기관차 2014.11.06 1222
230 전투 방어를 했을경우 hp / mp 회복 되도록 하는 스크립트 15 아방스 2008.01.22 3751
» 전투 방패가없어? 그럼 방어못하게하는 스크립트. 16 file 할렘 2009.02.07 3425
228 기타 배틀신에서 곡 넘기기 2 rukan 2009.07.02 1757
227 배틀할때 몬스터의 HP표시 !! 5 file 미카엘 2008.08.17 7517
226 기타 범용 게이지 묘화 - KGC 14 file 카르와푸딩의아틀리에 2009.08.19 3476
225 베틀 스크린 톤 체인지?? 무슨 말? 4 Man... 2008.10.28 1616
224 HUD 변수 표시 HUD 8 Tofuman 2009.02.15 2469
223 상점 보관함 스크립트 43 file 허걱 2009.02.02 5161
222 이동 및 탈것 부드럽게 이동, 8 방향이동 스크립트 25 file 사람이라면? 2010.08.16 3798
221 전투 불사신(무적) 스크립트 9 file 미얼 2009.10.29 3198
220 기타 블랙잭, 룰렛, 포커 스크립트 종합 9 file 도심 2010.08.22 2643
219 기타 블록 미니게임 11 file 사람이라면? 2010.08.15 2269
218 기타 빛 이펙트 71 file DEVIL<Li Patanis Roni Kraudus> 2008.06.06 5861
Board Pagination Prev 1 ... 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ... 32 Next
/ 32