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 5141
공지 RPG VX ACE 유용한 링크 모음 16 아방스 2012.01.03 28968
57 액터 Actor Creation System by Tsukihime 4 Alkaid 2012.09.16 3555
56 오디오 Audio Pump Up: FMOD Ex by mikb89 2 Alkaid 2012.09.08 2075
55 메뉴 Syvkal's Menu Bars VX Ace 3 Alkaid 2012.09.08 4284
54 메뉴 Syvkal's Ring Menu VX Ace 2 Alkaid 2012.09.08 3814
53 기타 던전 자동생성 4 Alkaid 2012.09.08 3162
52 키입력 RGSS3 Input Full + UTF-8 Input by Cidiomar 1 Alkaid 2012.09.08 2435
51 전투 Transition EX 1.2 by MogHunter Alkaid 2012.09.07 2482
50 장비 VXAce 장비장착 스킬발동 스크립트 2 아이미르 2012.09.02 2403
49 기타 ACE) 오블리비언 락픽 구현 V0.5.2 7 file 77이알 2012.09.02 4812
48 장비 Ace 장비 착용의 제한 스크립트 11 아이미르 2012.09.01 2787
47 전투 Etude87_Custom_Max_Tp_Weapon ver.1.0 5 습작 2012.08.28 2662
46 아이템 VXAce 아이템 합성 스크립트 Ver 0.8 17 아이미르 2012.08.23 4002
45 메뉴 ace용 mog메뉴와 mog전투 10 file 꿈꾸는사람 2012.08.04 6054
44 그래픽 [ACE][BR] Awesome Light Effects 1.0(빛관련 스크립트) 37 file 꿈꾸는사람 2012.08.02 7016
43 기타 Sapphire Action System IV v4.4br(엑알 스크립트) 6 file 꿈꾸는사람 2012.08.02 4519
42 맵/타일 Etude87_Map_Remember_Ace ver.1.2 11 습작 2012.07.17 3517
41 기타 없는 것 같아서 올립니다. VX ACE 한계 돌파 스크립트입니다. 24 빙룡군 2012.07.07 5599
40 이름입력 전체키 + 조합한글 + 이름입력처리 변경 47 file 허걱 2012.07.04 8202
39 상점 VXAce 상점 스크립트 V0.9 17 아이미르 2012.06.29 5381
38 스킬 [VX/VX Ace] Skill_Update_System 10 file 허걱 2012.06.11 3995
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 Next
/ 11