赞 | 0 |
VIP | 1 |
好人卡 | 11 |
积分 | 5 |
经验 | 11053 |
最后登录 | 2022-2-19 |
在线时间 | 228 小时 |
Lv2.观梦者
- 梦石
- 0
- 星屑
- 451
- 在线时间
- 228 小时
- 注册时间
- 2015-2-23
- 帖子
- 241
|
把下面这个贴在你脚本main前面就可以了。
- #==============================================================================
- class Game_Actor < Game_Battler
- #--------------------------------------------------------------------------
- # ● 获取基本攻击力
- #--------------------------------------------------------------------------
- def base_atk
- weapon = $data_weapons[@weapon_id]
- ba = weapon != nil ? weapon.atk : 0
- buff = @armor1_id == 0 ? 3 : 0
- return ba + ba * 3 / 10
- end
- #--------------------------------------------------------------------------
- # ● 获取基本物理防御
- #--------------------------------------------------------------------------
- def base_pdef
- weapon = $data_weapons[@weapon_id]
- armor1 = $data_armors[@armor1_id]
- armor2 = $data_armors[@armor2_id]
- armor3 = $data_armors[@armor3_id]
- armor4 = $data_armors[@armor4_id]
- pdef1 = weapon != nil ? weapon.pdef : 0
- pdef2 = armor1 != nil ? armor1.pdef : 0
- pdef3 = armor2 != nil ? armor2.pdef : 0
- pdef4 = armor3 != nil ? armor3.pdef : 0
- pdef5 = armor4 != nil ? armor4.pdef : 0
- bp = pdef1 + pdef2 + pdef3 + pdef4 + pdef5
- buff = @armor1_id == 0 ? 1 : 0
- return bp - bp * buff / 10
- end
- #--------------------------------------------------------------------------
- # ● 获取基本魔法防御
- #--------------------------------------------------------------------------
- def base_mdef
- weapon = $data_weapons[@weapon_id]
- armor1 = $data_armors[@armor1_id]
- armor2 = $data_armors[@armor2_id]
- armor3 = $data_armors[@armor3_id]
- armor4 = $data_armors[@armor4_id]
- mdef1 = weapon != nil ? weapon.mdef : 0
- mdef2 = armor1 != nil ? armor1.mdef : 0
- mdef3 = armor2 != nil ? armor2.mdef : 0
- mdef4 = armor3 != nil ? armor3.mdef : 0
- mdef5 = armor4 != nil ? armor4.mdef : 0
- bm = mdef1 + mdef2 + mdef3 + mdef4 + mdef5
- buff = @armor1_id == 0 ? 1 : 0
- return bm - bm * buff / 10
- end
- end
复制代码 |
|