| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 8 |
| 经验 | |
| 最后登录 | 2021-11-3 |
| 在线时间 | 223 小时 |
- 梦石
- 0
- 星屑
- 825
- 在线时间
- 223 小时
- 注册时间
- 2014-5-23
- 回帖
- 47
|
楼主 |
发表于 2014-5-27 23:19:36
|
显示全部楼层
myownroc 发表于 2014-5-27 22:41 
请问楼主有没有改动过默认的脚本,如果有,请上传修改的部分或上传整个工程。
如果没有……那还是请楼主上 ...
[pre lang="ruby" line="1"] @battler_hue = 0
@hp = 0
@sp = 0
@states = []
@states_turn = {}
@maxhp_plus = 0
@maxsp_plus = 0
@str_plus = 0
@dex_plus = 0
@agi_plus = 0
@int_plus = 0
@Hidden = false
@immortal = false
@damage_pop = false
@damage = nil
@critical = false
@animation_id = 0
@animation_hit = false
@white_flash = false
@blink = false
@current_action = Game_BattleAction.new
end
#--------------------------------------------------------------------------
# ● 获取 MaxHP
#--------------------------------------------------------------------------
def maxhp
n = [[base_maxhp + @maxhp_plus, 1].max, 999999].min
for i in @states
n *= $data_states.maxhp_rate / 100.0
end
n = [[Integer(n), 1].max, 999999].min
return n
end
#--------------------------------------------------------------------------
# ● 获取 MaxSP
#--------------------------------------[/pre]
这应该就是控制HP的脚本了 |
|