Ace 스크립트

왼손에도 도끼 오른손에도 도끼~ 


난 쌍칼이 될래~


SS0012.png


=begin
Duel Wield -> Free Hands
by Fomar0153
Version 1.0
----------------------
Notes
----------------------
No requirements
Changes dual wielding to allow characters to equip shield or one handed
weapons in the shield slot. Also allows for two handed weapons.
----------------------
Instructions
----------------------
Notetag two handed weapon with <two-handed> and have them
disable the shield slot.
I would reccomend changing the slot name to Main Hand and Off Hand
or something similiar
----------------------
Known bugs
----------------------
None
=end
class Game_Actor
  
  def equip_slots
    return [0,1,2,3,4]
  end
  
  def change_equip(slot_id, item)
    return unless trade_item_with_party(item, equips[slot_id])
    return if (item && equip_slots[slot_id] != item.etype_id) and
      not (dual_wield? and (equip_slots[slot_id] == 1 and item.etype_id == 0))
    @equips[slot_id].object = item
    refresh
  end
  
  def release_unequippable_items(item_gain = true)
    @equips.each_with_index do |item, i|
      if !equippable?(item.object,equip_slots[i]) || (item.object.etype_id != equip_slots[i] and
          not (dual_wield? and (equip_slots[i] == 1 and item.object.etype_id == 0)))
        trade_item_with_party(nil, item.object) if item_gain
        item.object = nil
      end
    end
  end
  
  def equippable?(item, slot = nil)
    unless slot.nil?
      if slot == 1 and dual_wield?
        return (super(item) and not equip_type_sealed?(1)) if item.is_a?(RPG::Weapon)
      end
    end
    return super(item)
  end
  
end

class RPG::Weapon
  
  def two_handed?
    return self.note.include?("<two-handed>")
  end
  
end

class Window_EquipItem < Window_ItemList
  
  def include?(item)
    return true if item == nil
    return false unless item.is_a?(RPG::EquipItem)
    return false if @slot_id < 0
    return false if @actor.equip_slots[@slot_id] == 1 and 
      (item.is_a?(RPG::Weapon) and item.two_handed?)
    return false if (item.etype_id != @actor.equip_slots[@slot_id]) and 
      not (@actor.dual_wield? and (@actor.equip_slots[@slot_id] == 1 and item.etype_id == 0))
    return @actor.equippable?(item,@actor.equip_slots[@slot_id])
  end
  
end

Who's 아방스

profile
Atachment
첨부 '1'
  • ?
    Bluesky(新) 2012.01.31 11:18

    이도류는 기본적으로 있는걸로 아는데 차이점이 무엇인가요?

    그리고 작착이 아니고 장착아니신가요? 너무 피곤하신듯..

  • ?
    Alkaid 2012.01.31 16:08

    저 스크립트는 이도류 캐릭터의 방패 착용, 방패슬롯에 무기를 장착(방패를 든 손이 왼손이라면 왼손잡이 플레이도 가능함), 양손무기 장착이 가능하게 하는 것입니다.



  • ?
    현성이 2012.04.20 22:17
    스샷도 제대로 확인 안해보시고 남을 그렇게 닥달하시면 안됩니다.
  • profile
    프곰 2012.05.19 12:46
    이도류 어떻게 하나요 ㄷㄷ
  • profile
    SONProjecter 2012.02.07 02:07

    윽.. 제가쓰는 스크립트랑 충돌되네요..(젠장!)

  • ?
    시옷청룡 2012.02.25 23:47

    오 괜찮ㅋ

  • profile
    안모군 2012.04.12 16:19

    방패냐, 이도류냐, 그것이 문제로다.(?)


List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
공지 스크립트 자료 게시물 작성시 주의사항 습작 2012.12.24 5110
공지 RPG VX ACE 유용한 링크 모음 16 아방스 2012.01.03 28927
217 HUD 화폐단위 표시 구분 5 file 허걱 2014.03.19 2938
216 이름입력 한글 이름입력창 23 file 에틴 2012.01.23 11680
215 메시지 한국어 조사처리 스크립트 7 Ilike게임 2012.10.09 3603
214 메시지 한국어 조사 처리 스크립트 (140130) 2 치리 2014.01.31 2647
213 메뉴 파티 개별 인벤토리 스크립트 안나카레리나 2018.06.25 741
212 메시지 텍스트 사운드 이펙트 ( Text Sound Effect ) 10 file 미루 2013.01.10 4301
211 타이틀/게임오버 타이틀 화면 없이 게임을 시작하게 만드는법. 6 마에르드 2012.02.11 4586
210 타이틀/게임오버 타이틀 스크린 커스터마이징 11 file 라실비아 2013.08.12 5153
209 키입력 키 입력 확장 - 전체키 + 마우스입력 40 file 허걱 2012.12.15 5781
208 기타 크리스탈 엔진 : 포켓몬 배틀 시스템 7 file 스리아씨 2013.09.24 3894
207 전투 콤보 카운팅 시스템 4 아르피쥐 2011.12.18 4589
206 타이틀/게임오버 코아 코스튬씨의 랜덤 타이틀 출력 스크립트를 VX Ace용으로 변환 (테스트용) 1 Alkaid 2011.12.29 3189
205 타이틀/게임오버 코아 코스튬씨의 랜덤 타이틀 스크립트를 VX Ace용으로 변환 (완성판) 2 Alkaid 2012.01.25 3981
204 그래픽 커스텀 아이콘 적용하기 2 file 간로 2015.09.28 2722
203 직업 직업 경험치+능력치 설정 확장 7 file zubako 2015.01.27 3988
202 이동 및 탈것 지상 탈것 스크립트 6 file 미루 2013.01.07 4579
201 전투 전투시 나오는 메세지 삭제 10 Nintendo 2012.03.03 4358
200 이름입력 전체키 + 조합한글 + 이름입력처리 변경 47 file 허걱 2012.07.04 8199
199 메뉴 저장금지시 메뉴에 저장 안 뜨게 하기 5 file Bunny_Boy 2013.08.24 2519
198 장비 장비 장착을 통한 스킬 습득 및 삭제 4 아이미르 2012.02.05 3597
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11