赞 | 0 |
VIP | 10 |
好人卡 | 49 |
积分 | 10 |
经验 | 22958 |
最后登录 | 2020-8-1 |
在线时间 | 2161 小时 |
Lv3.寻梦者 酱油的
- 梦石
- 0
- 星屑
- 1035
- 在线时间
- 2161 小时
- 注册时间
- 2007-12-22
- 帖子
- 3271
|
少了這個腳本:
- # ▽△▽ XRXS. 装備属性取得機構 ▽△▽ built 221114
- # by 桜雅 在土
- #==============================================================================
- # --- XRXS. 装備属性取得機構 ---
- #==============================================================================
- class Game_Battler
- #--------------------------------------------------------------------------
- # ○ スキルの属性取得
- #--------------------------------------------------------------------------
- def skill_element_set(skill)
- return skill.nil? ? [] : skill.element_set
- end
- #--------------------------------------------------------------------------
- # ○ 全装備の属性取得
- #--------------------------------------------------------------------------
- def equip_element_set
- return self.element_set + self.guard_element_set
- end
- #--------------------------------------------------------------------------
- # ○ 全防具の属性取得
- #--------------------------------------------------------------------------
- def guard_element_set
- return []
- end
- end
- class Game_Actor < Game_Battler
- def guard_element_set
- set = []
- for id in self.armor_ids
- next if id.nil?
- armor = $data_armors[id]
- set += (armor != nil ? armor.guard_element_set : [])
- end
- return set
- end
- #--------------------------------------------------------------------------
- # ○ 武器 ID配列
- #--------------------------------------------------------------------------
- def weapon_ids
- @weapon_ids = [] if @weapon_ids == nil
- @weapon_ids[0] = @weapon_id
- return @weapon_ids
- end
- #--------------------------------------------------------------------------
- # ○ 防具 ID配列
- #--------------------------------------------------------------------------
- def armor_ids
- @armor_ids = [] if @armor_ids == nil
- @armor_ids[0] = @armor1_id
- @armor_ids[1] = @armor2_id
- @armor_ids[2] = @armor3_id
- @armor_ids[3] = @armor4_id
- return @armor_ids
- end
- #--------------------------------------------------------------------------
- # ○ 装備配列の取得
- #--------------------------------------------------------------------------
- def equipments
- equipments = []
- self.weapon_ids.each {|id| equipments.push($data_weapons[id])}
- self.armor_ids.each {|id| equipments.push($data_armors[id])}
- return equipments
- end
- #--------------------------------------------------------------------------
- # ○ 装備中?
- #--------------------------------------------------------------------------
- def equiping?(item)
- case item
- when RPG::Weapon
- return self.weapon_ids.include?(item.id)
- when RPG::Armor
- return self.armor_ids.include?(item.id)
- else
- return false
- end
- end
- end
复制代码 |
|