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 5398
397 스킬 무기 업그레이드 시스템 27 file 담먹캐 2009.11.01 5757
396 상점 스킬합성 상점 스크립트 23 file 미얼 2009.10.29 4498
395 전투 불사신(무적) 스크립트 9 file 미얼 2009.10.29 3198
394 메시지 대화창효과 8 078656577er 2009.10.20 5972
393 기타 사이드뷰배틀에서 찌르기 공격 가능하게(Upgrade!) 6 078656577er 2009.10.15 2838
392 전투 사이드뷰배틀에서 시각적으로 위치 지정하기 9 file 078656577er 2009.10.14 4910
391 맵/타일 새로운 월드맵 만들기 (로맨싱사가풍) 37 file 078656577er 2009.10.09 6151
390 기타 KGC패시브 스크립트 30 카르와푸딩의아틀리에 2009.10.07 3551
389 저장 오토세이브 VX 5 file 카르와푸딩의아틀리에 2009.10.05 4138
388 메시지 얼굴표시 9 허걱 2009.09.23 5001
387 전투 사이드뷰배틀에서 찌르기 공격 가능하게 7 078656577er 2009.09.16 3223
386 전투 반사 스테이트 -KGC 4 카르와푸딩의아틀리에 2009.09.12 2661
385 기타 커스텀 페이지 스크립트 9 file 달표범 2009.09.07 3140
384 상점 상점 할인 스크립트(변수를 이용한 물건 가격 조정) 9 달표범 2009.09.04 3185
383 맵/타일 타일 바꾸기 13 file 허걱 2009.09.01 3687
382 전투 대미지%MP흡수 스크립트 4 Evangelista 2009.08.31 2279
381 전투 대미지 MP전환 스테이트 : 수정 => 마나쉴드 7 Evangelista 2009.08.29 2384
380 HUD 네비게이션 (나침반) 36 file 허걱 2009.08.25 4908
379 이동 및 탈것 느리게 걷기 5 허걱 2009.08.23 2424
378 타이틀/게임오버 Rafidelis KaHh Box 타이틀화면 20 카르와푸딩의아틀리에 2009.08.23 5004
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