赞 | 2 |
VIP | 109 |
好人卡 | 208 |
积分 | 4 |
经验 | 22037 |
最后登录 | 2024-11-11 |
在线时间 | 1198 小时 |
Lv2.观梦者 虚構歪曲
- 梦石
- 0
- 星屑
- 364
- 在线时间
- 1198 小时
- 注册时间
- 2010-12-18
- 帖子
- 3928
|
本帖最后由 忧雪の伤 于 2011-3-12 11:56 编辑
- $system = {} if $system == nil
- $system["胜利储存变量"] = 10
- $system["失败储存变量"] = 11
- $system["逃跑储存变量"] = 12
- $system["最高伤害储存变量"] = 13
- class Scene_Battle
- alias :old_battle_end :battle_end unless method_defined? :old_battle_end
- def battle_end(result)
- case result
- when 0
- $game_variables[$system["胜利储存变量"]] += 1
- # => p $game_variables[$system["胜利储存变量"]]
- when 1
- $game_variables[$system["失败储存变量"]] += 1
- # => p $game_variables[$system["失败储存变量"]]
- when 2
- $game_variables[$system["逃跑储存变量"]] += 1
- # => p $game_variables[$system["逃跑储存变量"]]
- end
- old_battle_end(result)
- end
- end
- class Game_Enemy
- alias :old_attack_effect :attack_effect unless method_defined? :old_attack_effect
- def attack_effect(attacker)
- old_attack_effect(attacker)
- if self.damage != "Miss" and $game_variables[$system["最高伤害储存变量"]] <= self.damage
- $game_variables[$system["最高伤害储存变量"]] = self.damage
- # => p $game_variables[$system["最高伤害储存变量"]]
- end
- end
- alias :old_skill_effect :skill_effect unless method_defined? :old_skill_effect
- def skill_effect(user, skill)
- old_skill_effect(user, skill)
- if self.damage != "Miss" and $game_variables[$system["最高伤害储存变量"]] <= self.damage
- $game_variables[$system["最高伤害储存变量"]] = self.damage
- # => p $game_variables[$system["最高伤害储存变量"]]
- end
- end
- end
复制代码 |
|