Project1

标题: 关于技能学习(高手来指点一下),急 [打印本页]

作者: bububinghe    时间: 2008-6-5 03:46
标题: 关于技能学习(高手来指点一下),急
就是斗神坛说的那种学习技能耗潜能的方法
  if $game_variables[25] != 0
       if $game_system.study_min[$name] <$game_system.study_max[$name]
      $game_system.study_min[$name] += 1
        $game_variables[25] -= 1
         
        if $game_variables[25] > 60
$game_party.actors[0].str += 1
end
    else
      $game_system.study_name[$name] += 1
      $game_system.study_min[$name] = 0
      $game_system.study_max[$name] += $game_system.study_max[$name] * 2
      
      end

我的是这样设置的,也就是说如果[25号变量值给100]那么实际str增加量为40.但这个算法不好用,因为这样设置那么在下一个等级时(也就是从等级1,当min=max然后显示等级2)一样是以一级的60以后为起点每点增加str,请问,怎样修改可以达到每升一级长一点str,因为这样可以达到等级越高越不容易增长熟练度的效果.....不知道我说清楚没有,望解答!谢谢!
PS:在game_system中添加了
class Game_System
  #--------------------------------------------------------------------------
  # ● 定义实例变量
  #--------------------------------------------------------------------------
  attr_reader   :map_interpreter          # 地图事件用解释程序
  attr_reader   :battle_interpreter       # 战斗事件用解释程序
  attr_accessor :timer                    # 计时器
  attr_accessor :timer_working            # 计时器执行中的标志
  attr_accessor :save_disabled            # 禁止存档
  attr_accessor :menu_disabled            # 禁止菜单
  attr_accessor :encounter_disabled       # 禁止遇敌
  attr_accessor :message_position         # 文章选项 显示位置
  attr_accessor :message_frame            # 文章选项 窗口外关
  attr_accessor :save_count               # 存档次数
  attr_accessor :magic_number             # 魔法编号
  attr_accessor :study_name      #添加项
  attr_accessor :study_min       #添加项
  attr_accessor :study_max       #添加项
  #--------------------------------------------------------------------------
  # ● 初始化对像
  #--------------------------------------------------------------------------
  def initialize
    @map_interpreter = Interpreter.new(0, true)
    @battle_interpreter = Interpreter.new(0, false)
    @timer = 0
    @timer_working = false
    @save_disabled = false
    @menu_disabled = false
    @encounter_disabled = false
    @message_position = 2
    @message_frame = 0
    @save_count = 0
    @magic_number = 0
    @study_name = [0,1,2]   #添加项
    @study_min = [0,0,0]    #添加项
    @study_max = [10,10,10] #添加项
  end
调用的时候是这样用的:
变量操作:[0025]=100
$game_system.study(0)
等待1桢
$scene = Scene_Study.new
这样就可以学习了....

再问一个:如果我想学习的时候让我选择 学习 力量(str)或者灵活(dex)该怎么弄
是从 $game_system.study(0)里面改?请问怎样改.我之前加了   
@study_name = [0,1,2]   #添加项
不会用...
作者: bububinghe    时间: 2008-6-5 04:06
自己顶自己一下......高手速度,不然斑竹又骂我续帖无耻了 [LINE]1,#dddddd[/LINE]版主对此帖的评论:『自顶+连帖也无耻。。』,积分『-25』。这些被扣积分的一半会用于对本帖正确答案的悬赏。
作者: bububinghe    时间: 2008-6-5 04:47
高手不在线?
作者: cheyenne    时间: 2008-6-5 04:49
第一我不是高手
第二自顶贴请在两天后
作者: bububinghe    时间: 2008-6-5 05:26
以下引用cheyenne于2008-6-4 20:49:10的发言:

第一我不是高手
第二自顶贴请在两天后

哦,已经受到处罚拉。。。。。5555
作者: havealook    时间: 2008-6-5 06:00
不是有个录象教程么 - -
http://rpg.blue/web/htm/news818.htm
作者: bububinghe    时间: 2008-6-5 06:24
以下引用havealook于2008-6-4 22:00:53的发言:

不是有个录象教程么 - -
http://rpg.blue/web/htm/news818.htm

看过了所以提的这些问题...
作者: link006007    时间: 2008-6-5 06:35
好像答非所问 删掉了...




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