Project1

标题: 急,重新分配加点按了没有起做用 [打印本页]

作者: 倚天    时间: 2009-1-13 20:06
提示: 作者被禁止或删除 内容自动屏蔽
作者: 后知后觉    时间: 2009-1-13 20:56
点数重置并不是把加过的所有点数重置
重置的只是当前的加了但是还没有保存的部分
已经点了保存了的部分是重置不了的,
除非你再给每个属性增加一个变量
那样做的话要改的地方就多了……!
作者: 倚天    时间: 2009-1-14 02:32
提示: 作者被禁止或删除 内容自动屏蔽
作者: 小泡    时间: 2009-1-14 07:31
直接复制你上面发的脚本看到437行
        if @command_window.index == 4
        
          # 演奏确定 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
        # 演奏光标 SE
        $game_system.se_play($data_system.cursor_se)
        # 移至下一位角色
        @actor_index += $game_party.actors.size - 1
        @actor_index %= $game_party.actors.size
        # 切换到地图画面
        $scene = Scene_Lvup.new(@actor_index , @command_window.index)
#        $scene = Scene_Map.new
        return
      end
      if @command_window.index == 4
        
          # 演奏确定 SE
        $game_system.se_play($data_system.cancel_se)
          # 将角色的剩余点数带入
        $point = $game_variables[@actor.id + LEVEL_UP_VARIABLE]   
          # 初始化临时量
        $temp_str = 0
        $temp_dex = 0
        $temp_agi = 0
        $temp_int = 0
        $temp_hp = 0
        $temp_sp = 0
        @lvup_window.refresh
        return
      end

貌似有点诡异呢 两个if @command_window.index == 4 [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: 倚天    时间: 2009-1-14 18:12
提示: 作者被禁止或删除 内容自动屏蔽




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