| 赞 | 27 |
| VIP | |
| 好人卡 | |
| 积分 | 17 |
| 经验 | |
| 最后登录 | 2025-11-27 |
| 在线时间 | 3039 小时 |
精灵族の天使<
- 梦石
- 0
- 星屑
- 1712
- 在线时间
- 3039 小时
- 注册时间
- 2007-3-16
- 回帖
- 33092
 
|
发表于 2007-8-1 07:47:33
|
显示全部楼层
大地图行走补血我采用的是这段,看看是否可行。
game_player第57行左右
#--------------------------------------------------------------------------
# ● 增加步数
#--------------------------------------------------------------------------
def increase_steps
super
# 不是强制移动路线的场合
unless @move_route_forcing
# 增加步数
$game_party.increase_steps
for actor in $game_party.actors
#增加 hp,sp
if actor.hp <= actor.maxhp
actor.hp += 1
end
if actor.sp <= actor.maxsp
actor.sp += 1
end
end
# 步数是偶数的情况下
if $game_party.steps % 2 == 0
# 检查连续伤害
$game_party.check_map_slip_damage
end
end
end
添上带彩的部分,则所有人员每走一步恢复1点hp和1点sp。 |
|