赞 | 152 |
VIP | 10 |
好人卡 | 39 |
积分 | 93 |
经验 | 146191 |
最后登录 | 2024-5-6 |
在线时间 | 2504 小时 |
Lv4.逐梦者
- 梦石
- 0
- 星屑
- 9280
- 在线时间
- 2504 小时
- 注册时间
- 2011-5-20
- 帖子
- 15389

|
- #==============================================================================
- # 此脚本来自 rpg.blue
- #------------------------------------------------------------------------------
- # ■ 新增装备风格
- # by:VIPArcher
- # 使用说明:在角色备注栏/职业备注栏里备注 <slot_type:x> 则角色变为x号装备风格
- # 优先读取职业栏的风格备注。
- #------------------------------------------------------------------------------
- # ◆ 搭配后知后觉的装备栏扩充脚本风味更佳(需要把他的脚本放在脚本这个上面)
- #==============================================================================
- $VIPArcherScript ||= {};$VIPArcherScript[:slot_type] = 20140803
- #==============================================================================
- # ★ 设定部分 ★
- #==============================================================================
-
- module VIPArcher
- SLOT_TYPE = {
- 0 => [0,1,2,3,4], # 普通
- 1 => [0,0,2,3,4], # 双持武器 (这两个是默认的东西最好别改)
- # 从这里开始添加装备风格
- 2 => [0,0,0,2,3,4], # 看我索爷三刀流
- 3 => [4], # 窝只是个需要保护的NPC装备只要首饰就够了吧。
- 4 => [2,3,3] # 233
- # 在这里继续添加类型。
- } # <= 这个大括号不能删
- end
-
- class Game_BattlerBase
- #--------------------------------------------------------------------------
- # ● 获取装备风格
- #--------------------------------------------------------------------------
- def slot_type
- classes = $data_classes[@class_id]
- classes.note =~ /<slot_type\s*:(.*)>/i
- return $1.to_i if $1!= nil
- actor.note =~ /<slot_type\s*:(.*)>/i
- return $1.to_i if $1!= nil
- features_set(FEATURE_SLOT_TYPE).max || 0
- end
- end
- class Game_Actor < Game_Battler
- alias vip_20140803_es equip_slots
- #--------------------------------------------------------------------------
- # ● 获取装备栏的数组
- #--------------------------------------------------------------------------
- def equip_slots
- return VIPArcher::SLOT_TYPE[slot_type] if
- VIPArcher::SLOT_TYPE[slot_type] != nil
- vip_20140803_es
- end
- end
- class Window_EquipSlot < Window_Selectable
- def actor=(actor)
- return if @actor == actor
- @actor = actor
- create_contents
- refresh
- end
- end
复制代码 @VIPArcher 有做过一个脚本···可以更改角色的装备风格,只要饰品的话脚本里自带的第三个就够了··· |
|