赞 | 0 |
VIP | 10 |
好人卡 | 49 |
积分 | 10 |
经验 | 22958 |
最后登录 | 2020-8-1 |
在线时间 | 2161 小时 |
Lv3.寻梦者 酱油的
- 梦石
- 0
- 星屑
- 1030
- 在线时间
- 2161 小时
- 注册时间
- 2007-12-22
- 帖子
- 3271
|
想了一下,覺得你可能比較需要這個腳本==a
- #==============================================================================
- # ■ Game_Actor
- #------------------------------------------------------------------------------
- # 处理角色的类。本类在 Game_Actors 类 ($game_actors)
- # 的内部使用、Game_Party 类请参考 ($game_party) 。
- #==============================================================================
- class Game_Actor < Game_Battler
- def hp_plus
- set = {}
- =begin
- #set[裝備ID]=hp附加值
- set[1]=40
- =end
- return set
- end
- def sp_plus
- set = {}
- =begin
- #set[裝備ID]=sp附加值
- set[2]=40
- =end
- return set
- end
-
- #--------------------------------------------------------------------------
- # ● 獲取裝備組
- #--------------------------------------------------------------------------
- def equipment
- equipment = []
- equipment.push($data_armors[@armor1_id])
- equipment.push($data_armors[@armor2_id])
- equipment.push($data_armors[@armor3_id])
- equipment.push($data_armors[@armor4_id])
- return equipment
- end
- #--------------------------------------------------------------------------
- # ● 獲取基本 MaxHP
- #--------------------------------------------------------------------------
- def base_maxhp
- n = $data_actors[@actor_id].parameters[0, @level]
- self.equipment.each do |equipment|
- unless equipment.nil?
- n += self.hp_plus[equipment.id].nil? ? 0 : self.hp_plus[equipment.id]
- end
- end
- return n
- end
- #--------------------------------------------------------------------------
- # ● 獲取基本 MaxSP
- #--------------------------------------------------------------------------
- def base_maxsp
- n = $data_actors[@actor_id].parameters[0, @level]
- self.equipment.each do |equipment|
- unless equipment.nil?
- n += self.sp_plus[equipment.id].nil? ? 0 : self.sp_plus[equipment.id]
- end
- end
- return n
- end
- end
复制代码
PS:小修改了一下,請重新下載過 |
|