KB.Driver 发表于 2020-3-24 13:22 谢谢大佬了 |
本帖最后由 KB.Driver 于 2020-3-24 13:25 编辑 在技能备注栏写<回溯>,效果范围必须设置为使用者 RUBY 代码复制
|
b200077 发表于 2020-3-24 09:50 我报错了 |
这个应该可以用数组做,每个回合记录血量和法力。 下面这段每个回合执行一次, $HP[$game_system.battle_count] += $game_actors[角色编号].hp $MP[$game_system.battle_count] += $game_actors[角色编号].mp 技能使用公共事件开启开关,然后开关的脚本 $game_actors[角色编号].hp = $HP[$game_system.battle_count - 3] $game_actors[角色编号].mp = $MP[$game_system.battle_count - 3] |
如果只需要回复HP和MP,可以用六个变量记录每回合的数值,然后使用技能时恢复各项数值。 |
站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作
GMT+8, 2024-5-3 13:05
Powered by Discuz! X3.1
© 2001-2013 Comsenz Inc.