질문과 답변

Extra Form
 스크립은 http://avangs.info/index.php?mid=rgss_vx_ace&category=969434&search_target=title&document_srl=378033

여기서 복붙했고요,

module Extra_Slots  
 
   Slots = []  
   # Edit here to add new slot types  
   # Slots[armour_type_id] = "name"  
   # I know it is named in the database but I don't believe you can access  
   # that name through Vocab  
   
   Slots[5] = "Additional"
   
 end 
 
 class Game_Actor < Game_Battler 
   #--------------------------------------------------------------------------
   # ● Rewrites equip_slots  
   #--------------------------------------------------------------------------  
   # Edit here to change what slots are available to your characters  
   # 0 - Weapon  
   # 1 - Shield  
   # 2 - Head  
   # 3 - Body  
   # 4 - Accessory  
   # 5+ a custom slot  
   def equip_slots    
     return [0,0,2,3,4,5,5,5] if dual_wield?    
     return [0,1,2,3,4,5,5,5]  
   end 

수정을 이렇게 했습니다.

문제는 게임을 켜봤는데 슬롯이 늘어나지를 않습니다. 이게 왜 그런건가요?

+ 위의 슬롯추가는 안건드리고 밑부분을 return [0,1,2,3,4,4,4,4]  이런식으로 고쳐봤는데도 적용이 되지를 않습니다.

스크립트는 에디터 맨 아래칸, main 바로 밑부분에다가 넣었고요.

+ 이도류로 캐릭터를 변경시켜봤지만 역시나 먹히지를 않네요. 그냥 스크립트 자체가 씹혀버리는거 같은데. 제가 설치를 잘못했나요? 해당 링크에서

#--------------------------------------------------------------------------
# ● New Module Extra_Slots
#--------------------------------------------------------------------------
module Extra_Slots

 
Slots = []
 
# Edit here to add new slot types
 
# Slots[armour_type_id] = "name"
 
# I know it is named in the database but I don't believe you can access
 
# that name through Vocab
 
Slots[7] = "Spell Tomes"

end

class Game_Actor < Game_Battler
 
#--------------------------------------------------------------------------
 
# ● Rewrites equip_slots
 
#--------------------------------------------------------------------------
 
# Edit here to change what slots are available to your characters
 
# 0 - Weapon
 
# 1 - Shield
 
# 2 - Head
 
# 3 - Body
 
# 4 - Accessory
 
# 5+ a custom slot
 
def equip_slots
   
return [0,0,2,3,4,4,4,7] if dual_wield?
   
return [0,1,2,3,4,4,4,7]
 
end
 
#--------------------------------------------------------------------------
 
# ● Rewrites change_equip
 
#--------------------------------------------------------------------------
 
def change_equip(slot_id, item)
   
return unless trade_item_with_party(item, equips[slot_id])
   
if item == nil
     
return if item && equip_slots[slot_id] != item.etype_id
   
else
     
if item.is_a?(RPG::Armor)
       
if Extra_Slots::Slots[item.atype_id] == nil
         
return if item && equip_slots[slot_id] != item.etype_id
       
else
         
return if item && equip_slots[slot_id] != item.atype_id
       
end
     
else
       
return if item && equip_slots[slot_id] != item.etype_id
     
end
   
end
   
@equips[slot_id].object = item
    refresh
 
end
 
#--------------------------------------------------------------------------
 
# ● Rewrites release_unequippable_items
 
#--------------------------------------------------------------------------
 
def release_unequippable_items(item_gain = true)
   
@equips.each_with_index do |item, i|
     
if !equippable?(item.object) || item.object.etype_id != equip_slots[i]
       
if item.is_armor?
         
unless Extra_Slots::Slots[equip_slots[i]] == nil
           
unless item.object.atype_id == equip_slots[i]
              trade_item_with_party
(nil, item.object) if item_gain
              item
.object = nil
           
end
         
else
            trade_item_with_party
(nil, item.object) if item_gain
            item
.object = nil
         
end
       
else
          trade_item_with_party
(nil, item.object) if item_gain
          item
.object = nil
       
end
     
end
   
end
 
end
end

class Window_EquipSlot < Window_Selectable
 
#--------------------------------------------------------------------------
 
# ● Rewrites slot_name
 
#--------------------------------------------------------------------------
 
def slot_name(index)
   
if @actor.equip_slots[index] >= 5
     
Extra_Slots::Slots[@actor.equip_slots[index]]
   
else
     
@actor ? Vocab::etype(@actor.equip_slots[index]) : ""
   
end
 
end
end

class Window_EquipItem < Window_ItemList
 
#--------------------------------------------------------------------------
 
# ● Rewrites include?
 
#--------------------------------------------------------------------------
 
def include?(item)
   
return true if item == nil
   
return false unless item.is_a?(RPG::EquipItem)
   
return false if @slot_id < 0
   
if item.is_a?(RPG::Armor)
     
if Extra_Slots::Slots[item.atype_id] == nil
       
return false if item.etype_id != @actor.equip_slots[@slot_id]
     
else
       
return false if item.atype_id != @actor.equip_slots[@slot_id]
     
end
   
else
     
return false if item.etype_id != @actor.equip_slots[@slot_id]
   
end
   
return @actor.equippable?(item)
 
end
end

class Scene_Equip < Scene_MenuBase
 
#--------------------------------------------------------------------------
 
# ● Aliases create_slot_window
 
#--------------------------------------------------------------------------
 
alias custom_slots_create_slot_window create_slot_window
 
def create_slot_window
    custom_slots_create_slot_window
   
@slot_window.create_contents
   
@slot_window.refresh
 
end
 
#--------------------------------------------------------------------------
 
# ● Aliases on_actor_change
 
#--------------------------------------------------------------------------
 
alias custom_slots_on_actor_change on_actor_change
 
def on_actor_change
    custom_slots_on_actor_change
   
@slot_window.create_contents
   
@slot_window.refresh
 
end
end

요 부분을 복사해서 스크립트 에디터 맨 아래칸 main칸 밑에다가 그대로 붙여넣기 한 다음에 수치만 변경시켰습니다.

부탁드려요 고수분들 이거 막혀서 진행이 안됩니다.
Comment '2'
  • ?
    repola 2014.04.03 20:29
    아, 스크립트를 아무대나 중간부분에 껴넣으니 작동이 되네요 ㅠ
  • ?
    lud 2014.04.04 04:50

    http://avangs.info/kin/290902

    공지사항이 안지켜집니다.


List of Articles
종류 분류 제목 글쓴이 날짜 조회 수
공지 묻고 답하기 가이드 습작 2014.06.14 12456
RMVXA 장비창에 장비의 노트에 적은것을 보여주는 스크립트... 5 서울담탱이 2013.08.06 732
RMMV 장비창에 변수 표시 1 file 가시밭 2016.05.15 166
RMXP 장비창 크기 변경 1 file 미니프레시 2013.10.30 1062
RMVX 장비착용시키는법 5 file 카릴리스 2012.06.29 1645
RMXP 장비종류확장 스크립트에 대해 질문합니다.. 2 GK탐정 2010.12.10 680
RMVXA 장비의 구분을 없애고 싶습니다. Lamancha 2014.12.25 175
기본툴 사용법 RMMV 장비옵션으로 골드나 드랍율을 듀라듀라셀 2022.01.12 186
RMXP 장비에 체력올리는 옵션 못넣나요? 1 말벗 2011.01.01 546
RMXP 장비에 체력 옵션 부여하는법좀여 3 프레 2011.05.09 1308
RMVX 장비에 변수 증감 효과를 넣는법 +α 2 카르츠 2012.09.07 1021
RMVX 장비아이템 판매금지 1 슬 라임 2011.07.08 1322
RMVXA 장비슬롯 늘이기 스크립이 작동하질 않습니다. 2 repola 2014.04.03 689
RMXP 장비설명관련질문 밀키웨이 2014.05.05 553
RMVX 장비상세정보를 확인할수있게하는방법좀요~ [A]중딩 2011.07.30 1034
RMVXA 장비별 상태 및 내구도 설정에 관하여 5 아자아자젤 2012.10.28 1379
RMVXA 장비를 바꿔서 직업을 바꿀 수 있습니까? 4 clown1 2012.08.31 970
RMXP 장비고정에관하여... 1 M4A1 Blcak Custom 2011.01.09 583
RMVXA 장비강화 스크립트가 적용 방법 질문있습니다. 1 Tes 2017.09.15 127
RMXP 장비가 바뀌엇을때 표현방법 1 말짱꽝이지롱 2012.08.09 1048
플러그인 사용 RMMV 장비/아이템에 레벨 제한을 걸고 싶습니다 1 코코아밀크 2019.06.02 104
Board Pagination Prev 1 ... 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 ... 516 Next
/ 516