|
3549| 4
|
[已经解决] 求大神告诉下 怎么让角色在原地等待5秒后回血!! |
|
悬赏20星屑已解决
最佳答案[pre lang="ruby"]class Scene_Map
alias cld99_update update
def update
cld99_update
update_recover_hp if $game_switches[1] #1号开关打开时原地回血
end
def update_recover_hp
@time ||= 0
Input.dir4 == 0 ? @time += 1 : @time = 0
if @time == 300
$game_party.members.each do |actor|
actor.change_hp(actor.mhp / 5, true)
end
@time = 0
end
...
| ||
评分 | ||
|
用头画头像,用脚写脚本
|
||
评分 | ||
| ||
|
用头画头像,用脚写脚本
|
||
| ||