| 
 
| 赞 | 0 |  
| VIP | 10 |  
| 好人卡 | 49 |  
| 积分 | 13 |  
| 经验 | 22958 |  
| 最后登录 | 2020-8-1 |  
| 在线时间 | 2161 小时 |  
 Lv3.寻梦者 酱油的 
	梦石0 星屑1315 在线时间2161 小时注册时间2007-12-22帖子3271 
 | 
| 是的,RTAB的加減血重新寫過了。需要用一點其他的方法。下面的腳本也許可以給你一點提示: #==============================================================================# ■ Scene_Battle (分割定义 4)
 #------------------------------------------------------------------------------
 #  处理战斗画面的类。
 #==============================================================================
 
 class Scene_Battle
 #--------------------------------------------------------------------------
 # ● リフレッシュ
 #--------------------------------------------------------------------------
 def refresh_phase(battler)
 battler.at %= @max
 if battler.movable?
 battler.atp = 100 * battler.at / @max
 end
 spell_reset(battler)
 
 # 連續傷害
 if battler.hp > 0 and battler.slip_damage?
 battler.slip_damage_effect
 battler.damage_pop["slip"] = true
 end
 # HP回復小
 if battler.state?(26) and battler.hp >0  #-恢复生命
 battler.hp_recover_effect_10
 battler.damage_pop["hp_plus"] = true
 end
 # SP回復小
 if battler.state?(27) and battler.hp >0  #-SP恢復
 battler.sp_recover_effect_11
 battler.damage_pop["sp_plus"] = true
 end
 # HP傷害小
 if battler.state?(28) and battler.hp >0  #-生命傷害
 battler.hp_recover_effect_14
 battler.damage_pop["hp_plus"] = true
 end
 # SP傷害小
 if battler.state?(29) and battler.hp >0  #-SP傷害
 battler.sp_recover_effect_15
 battler.damage_pop["sp_plus"] = true
 end
 
 # ステート自然解除
 battler.remove_states_auto
 # ステータスウィンドウをリフレッシュ
 status_refresh(battler, true)
 unless battler.movable?
 return
 end
 # ターン数カウント
 @turn_cnt += 1
 end
 end
 class Game_Battler
 # HP
 def hp_common
 # 分散
 if self.damage["hp_plus"].abs > 0
 amp = [self.damage["hp_plus"].abs * 15 / 100, 1].max
 self.damage["hp_plus"] += rand(amp+1) + rand(amp+1) - amp
 end
 # HP からダメージを減算
 self.hp -= self.damage["hp_plus"]
 end
 def hp_recover_effect_10
 # ダメージを設定
 self.damage["hp_plus"] = -self.maxhp / 10
 # 分散 and 減算
 hp_common
 # メソッド終了
 return true
 end
 def hp_recover_effect_14
 # ダメージを設定
 self.damage["hp_plus"] = self.maxhp / 15
 # 分散 and 減算
 hp_common
 # メソッド終了
 return true
 end
 
 # SP
 def sp_common
 # 分散
 if self.damage_sp["sp_plus"].abs > 0
 amp = [self.damage_sp["sp_plus"].abs * 15 / 100, 1].max
 self.damage_sp["sp_plus"] += rand(amp+1) + rand(amp+1) - amp
 end
 # HP からダメージを減算
 self.sp -= self.damage_sp["sp_plus"]
 end
 def sp_recover_effect_11
 # ダメージを設定
 self.damage_sp["sp_plus"] = -self.maxsp / 10
 # SP からダメージを減算
 sp_common
 # メソッド終了
 return true
 end
 def sp_recover_effect_15
 # ダメージを設定
 self.damage_sp["sp_plus"] = self.maxsp / 15
 # SP からダメージを減算
 sp_common
 # メソッド終了
 return true
 end
 
 end
 | 
 |