查看: 1346|回复: 2

发现人物加点脚本所出现的问题

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-9-27
回帖
45
发表于 2008-11-10 15:36:02 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽
梦石
0
星屑
1094
在线时间
170 小时
注册时间
2008-10-29
回帖
399
发表于 2008-11-10 18:16:30 | 显示全部楼层
鉴定完毕
你在加点确认以后 没有把临时点数清0
所以每确认一次 就会把临时点数再加上一次
所以会不停的涨

在脚本 大概是470行以后附近吧

把这一段

if @command_window.index == 5
        # 演奏确定 SE
        $game_system.se_play($data_system.decision_se)
        # 将角色的剩余点数带回
        $game_variables[@actor.id + LEVEL_UP_VARIABLE] = $point
        # 将角色点数实际加上
       @actor.str += $temp_str
        @actor.dex += $temp_dex
        @actor.agi += $temp_agi
        @actor.int += $temp_int
        @actor.maxhp += $temp_hp
        @actor.maxsp += $temp_sp
       #

之后 加上

        $temp_str =0
        $temp_dex =0
        $temp_agi =0
        $temp_int =0
        $temp_hp =0
        $temp_sp =0        
        @lvup_window.refresh
再试试看


系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
回复

使用道具 举报

梦石
0
星屑
1094
在线时间
170 小时
注册时间
2008-10-29
回帖
399
发表于 2008-11-10 18:17:55 | 显示全部楼层
refresh那句是用来刷新窗口的 就不用切出去看 属性变了没了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部