Project1

标题: 升级加满血为什么没用? [打印本页]

作者: y967    时间: 2013-8-24 08:41
标题: 升级加满血为什么没用?
    if actor.level > last_level
          actor.hp = actor.maxhp;          actor.sp = actor.maxsp
          @status_window.level_up(i)


作者: 芯☆淡茹水    时间: 2013-8-24 18:17
本帖最后由 芯☆淡茹水 于 2013-8-24 18:21 编辑

把 actor.hp = actor.maxhp;          actor.sp = actor.maxsp
改成:actor.recover_all  (全回复)
然后下面再加一句:@status_window.refresh(刷新状态窗口)
作者: y967    时间: 2013-8-25 07:38
芯☆淡茹水 发表于 2013-8-24 18:17
把 actor.hp = actor.maxhp;          actor.sp = actor.maxsp
改成:actor.recover_all  (全回复)
然后 ...



插到这里了,还有下面是脚本

看看哪里不对
作者: 张咚咚    时间: 2013-8-25 08:13
找到脚本Game_Actor,搜索 @level += 1      在下面填上@hp=maxhp;@mp=maxmp
    @level += 1
    @hp=maxhp;@mp=maxmp
就这样就好了




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1