Project1
标题:
主人公hp加百分之多少或加多少点用语句怎么写?
[打印本页]
作者:
库拉托斯
时间:
2014-9-30 12:18
标题:
主人公hp加百分之多少或加多少点用语句怎么写?
我想写在事件的脚本里,谢谢各位前辈了
作者:
taroxd
时间:
2014-9-30 12:51
未测试
actor = $game_party.leader
actor.hp += (actor.mhp * 0.1).to_i if actor # 回复10%
actor.hp += 10 if actor # 回复10点
作者:
库拉托斯
时间:
2014-9-30 12:58
taroxd 发表于 2014-9-30 12:51
未测试
actor = $game_party.leader
我想写在设置移动路线的脚本里。大大能不能写成一句话?
作者:
库拉托斯
时间:
2014-9-30 13:02
taroxd 发表于 2014-9-30 12:51
未测试
actor = $game_party.leader
已经按照您的那个自己写出来了,谢谢啦
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1