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 6661
81 전투 VLAD ABS [액알 시스템] 65 아방스 2009.01.07 12583
80 전투 vampyr SBABS-Requiem ABS 9(액알) 101 file 담먹캐 2009.11.01 12034
79 전투 사이드뷰배틀3.3 + ATB1.1 스크립트. 65 할렘 2009.02.01 10977
78 전투 ORBS [새로운 전투 방식] 48 file 아방스 2009.03.04 10233
77 전투 rpgvx 간단액알 스크립트 제작: 41 *PS 2008.02.07 9842
76 전투 RPG Tankentai SBS 3.3 + ATB Kaduki Eng 58 아방스 2009.02.05 9091
75 전투 ATB전투방식.(사이드뷰X 백발의카임전투방식O) 14 file 이피쿤 2009.06.24 9075
74 전투 WGB배틀 시스템. 59 file 카르와푸딩의아틀리에 2009.06.30 8800
73 전투 Crissaegrim ABS 2.0.5 최신 48 file RPGbooster 2008.10.08 8790
72 전투 Requiem ABS 8 - 액션 배틀 시스템 8 36 아방스 2009.06.24 8563
71 전투 RPGTankentai SBS3.3b 버전 (사이드뷰) 21 file 카르와푸딩의아틀리에 2009.07.01 8475
70 전투 사이드뷰 스크립트 [2003 전투 방식] 39 아방스 2008.03.09 8435
69 전투 PRABS 2.0 액션배틀시스템 58 file RPGbooster 2008.10.08 7615
68 전투 Requiem SBABS (Requiem Squad Based Battle System) 14 vk 2009.02.07 7559
67 전투 사이드 뷰 시스템 [시트르산님 제공] 56 아방스 2010.11.29 7524
66 전투 VX SRPG 한글번역 (최종수정) 26 file 에틴 2010.08.25 7438
65 전투 ORBS_v1[1].06 전투시스템. 22 file 할렘 2009.02.06 7425
64 전투 전투배경을 자신이 원하는 형태로 45 file 아방스 2008.01.23 7160
63 전투 Spin Battle System [완성버젼] 38 file 할렘 2009.11.14 6851
62 전투 파이널 판타지 XIII 배틀 시스템 [출처:RRR포럼] 56 file WolV 2010.02.03 6812
Board Pagination Prev 1 2 3 4 5 Next
/ 5