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
41 전투 VX SRPG 한글번역 (최종수정) 26 file 에틴 2010.08.25 7418
40 전투 VX SRPG3d 수정본(1) 12 아이미르 2011.10.19 4617
39 전투 VX SRPG3d(한글번역) 8 file 아이미르 2011.10.15 5033
38 전투 VX 사이드 뷰 전투 (2003 방식) 16 드로드맨 2008.02.24 4996
37 전투 VX]Mog Battleback XP 1.0 11 file WMN 2008.04.06 3869
36 전투 VX_SRPG2 by tomoaky 1 습작 2013.05.13 2050
35 전투 VX에서 전투배경을 XP스타일로 나오게 하는 스크립트 7 아방스 2008.01.25 4839
34 전투 WGB배틀 시스템. 59 file 카르와푸딩의아틀리에 2009.06.30 8777
33 전투 XAS Hero Edition VX 15 Alkaid 2011.12.28 4229
32 전투 XAS Hero Edition VX Manual 번역 1 케이언 2012.01.02 3554
31 전투 [RPG VX]기술에 쿨타임을 부여하는 스크립트 3 스리아씨 2013.12.05 2348
30 전투 [vx] ATB 시스템. 10 만들어보자꾸나 2008.07.05 4925
29 전투 [덮어씌우기]Window_ActorCommand_EX 4 맛난호빵 2011.03.12 2341
28 전투 대미지 MP전환 스테이트 : 수정 => 마나쉴드 7 Evangelista 2009.08.29 2384
27 전투 대미지%MP흡수 스크립트 4 Evangelista 2009.08.31 2279
26 전투 돌아가는 전투 메뉴 시스템 33 아방스 2008.08.29 5085
25 전투 맨손 공격시 2번공격하는 스크립트 5 아방스 2008.01.24 2357
24 전투 반사 스테이트 -KGC 4 카르와푸딩의아틀리에 2009.09.12 2661
23 전투 방어를 했을경우 hp / mp 회복 되도록 하는 스크립트 15 아방스 2008.01.22 3746
» 전투 방패가없어? 그럼 방어못하게하는 스크립트. 16 file 할렘 2009.02.07 3425
Board Pagination Prev 1 2 3 4 5 Next
/ 5