Project1
标题:
怎么每个回合补一定数量的HP
[打印本页]
作者:
1018570975
时间:
2011-4-12 18:03
标题:
怎么每个回合补一定数量的HP
就是进入补血状态,每个回合补一定数量的HP,或者6/1的HP。
应该怎么做,有没有相关脚本? dsu_plus_rewardpost_czw
作者:
禾西
时间:
2011-4-12 18:18
http://www.66rpg.com/htm/news539.htm
作者:
无心孤云
时间:
2011-4-12 21:04
用这个试试,插入到main前面。
module After_Battle
# HP回复开关(不回复改成false)
HP_RE = true
# HP回复量(%)
HP_RE_PER = 20
# SP回复开关(不回复改成false)
SP_RE = true
# SP回复量(%)
SP_RE_PER = 20
# 战斗后复活开关(复活改成true)
CORPSE_RE = false
end
class Scene_Battle
include After_Battle
alias start_phase5_rec start_phase5
def start_phase5
for actor in $game_party.actors
if HP_RE and !actor.dead?
actor.hp += (actor.maxhp * HP_RE_PER / 100).truncate
end
if SP_RE and !actor.dead?
actor.sp += (actor.maxsp * SP_RE_PER / 100).truncate
end
if CORPSE_RE and actor.dead?
actor.hp = 1
end
end
start_phase5_rec
end
end
复制代码
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1