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
397 메뉴 캐릭터설명을 심플하게! 스크립트. 13 file 할렘 2009.02.03 4873
396 퀘스트 디아블로 스타일 퀘스트 시스템(번역) 38 file 훈덕 2009.02.03 6087
395 온라인 NETVX 2버전 18 아방스 2009.02.04 3931
394 전투 스킬 커맨드 스크립트 16 아방스 2009.02.05 4552
393 기타 작은 게이지바 표시 스크립트 44 file 허걱 2009.02.05 6002
392 전투 GTBS 1.0 [스크립트] 24 아방스 2009.02.05 6155
391 기타 Base Project 15 아방스 2009.02.05 3090
390 이동 및 탈것 피티원이 따라다니는 스크립트 38 file 아방스 2009.02.05 5055
389 전투 RPG Tankentai SBS 3.3 Kaduki Eng 2 아방스 2009.02.05 5480
388 전투 RPG Tankentai SBS 3.3 + ATB Kaduki Eng 58 아방스 2009.02.05 9091
387 직업 [직업 변경] TBK_JobChanger_Demo_v1.2 10 아방스 2009.02.05 3508
386 스킬 스킬 사용시 컷인 연출 (번역) 26 file 훈덕 2009.02.05 5416
385 메뉴 스테이터스 창을 멋있게 쿨하게~!전신을 보여주자. 24 file 할렘 2009.02.06 6276
384 이동 및 탈것 8 방향 이동스크립트 + 스프라이트 효과 12 file 레오 2009.02.06 7661
383 메뉴 파이날 판타지 IX 메뉴. 12 file 할렘 2009.02.06 6323
382 전투 ORBS_v1[1].06 전투시스템. 22 file 할렘 2009.02.06 7425
381 이름입력 주인공이름으로 저장하는 스크립트 6 file 아방스 2009.02.07 4106
380 기타 라이트 이펙트 스크립트 12 file 아방스 2009.02.07 3288
379 전투 Requiem SBABS (Requiem Squad Based Battle System) 14 vk 2009.02.07 7559
» 전투 방패가없어? 그럼 방어못하게하는 스크립트. 16 file 할렘 2009.02.07 3438
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