Project1

标题: RATB的问题 [打印本页]

作者: L_yugi    时间: 2008-4-25 02:58
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-25 03:14
参考:http://rpg.blue/web/htm/news63.htm

作者: L_yugi    时间: 2008-4-25 03:38
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-25 03:43
找到
  def update_phase4_step3


    def update_phase4_step4

按照教程中所说的在里面修改

还有,我又不知道你用的是什么RTAB的脚本,要么你发上来,我帮你改
作者: 电鳗    时间: 2008-4-25 03:48
好像RATB改齐时会出问题
---(此句仅为个人意见,切勿介意)
作者: havealook    时间: 2008-4-25 03:58
回LS,热血物语中的RATB就改齐了
作者: L_yugi    时间: 2008-4-25 04:27
提示: 作者被禁止或删除 内容自动屏蔽
作者: L_yugi    时间: 2008-4-25 04:27
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-25 04:38

把原来那个的地方换成:
  1. #--------------------------------------------------------------------------
  2. # ● フレーム更新 (メインフェーズ ステップ 3 : 行動側アニメーション)
  3. #--------------------------------------------------------------------------
  4. def update_phase4_step3(battler)
  5.    # ヘルプウィンドウの更新。アクションの種別で分岐
  6.    case battler.current_action.kind
  7.    when 0  # 基本
  8.      if battler.current_action.basic == 1
  9.        @help_window.set_text($data_system.words.guard, 1)
  10.        @help_wait = @help_time
  11.      end
  12. #========RTAB 1.16==================================      
  13.      if battler.current_action.basic == 2
  14.        # 逃げる
  15.        @help_window.set_text("逃げる", 1)
  16.        @help_wait = @help_time
  17.        battler.escape
  18.        battler.phase = 4
  19.        return
  20.      end
  21. #===================================================        
  22.    when 1  # スキル
  23.      skill =  $data_skills[battler.current_action.skill_id]
  24.      @help_window.set_text(skill.name, 1)
  25.      @help_wait = @help_time
  26.    when 2  # アイテム
  27.      item = $data_items[battler.current_action.item_id]
  28.      @help_window.set_text(item.name, 1)
  29.      @help_wait = @help_time
  30.    end
  31.    # 行動側アニメーション (ID が 0 の場合は白フラッシュ)
  32.    if battler.anime1 == 0
  33.      battler.white_flash = true
  34.      battler.wait = 5
  35.      # カメラ設定
  36.      if battler.target[0].is_a?(Game_Enemy)
  37.        camera_set(battler)
  38.      end
  39.    else
  40.      battler.animation.push([battler.anime1, true])
  41.      speller = synthe?(battler)
  42.      if speller != nil
  43.        for spell in speller
  44.          if spell != battler
  45.            if spell.current_action.spell_id == 0
  46.              spell.animation.push([battler.anime1, true])
  47.            else
  48.              skill = spell.current_action.spell_id
  49.              spell.animation.push([$data_skills[skill].animation1_id, true])
  50.              spell.current_action.spell_id = 0
  51.            end
  52.          end
  53.        end
  54.      end
  55.      battler.wait = 2 * $data_animations[battler.anime1].frame_max - 10
  56.    end
  57. #################################################################
  58.   for target in battler.target
  59.      target.animation.push([battler.anime2,
  60.                                          (target.damage[battler] != "Miss")])
  61.      unless battler.anime2 == 0
  62.        battler.wait = 2 * $data_animations[battler.anime2].frame_max - 10
  63.      end
  64.    end
  65. #################################################################
  66.    # ステップ 4 に移行
  67.    battler.phase = 4
  68. end
  69. #--------------------------------------------------------------------------
  70. # ● フレーム更新 (メインフェーズ ステップ 4 : 対象側アニメーション)
  71. #--------------------------------------------------------------------------
  72. def update_phase4_step4(battler)
  73.    # カメラ設定
  74.    if battler.target[0].is_a?(Game_Enemy) and battler.anime1 != 0
  75.       camera_set(battler)
  76.    end
  77.    # 対象側アニメーション
  78. ####################
  79.     #这里被我删了
  80. ####################
  81.    # ステップ 5 に移行
  82.    battler.phase = 5
  83. end
复制代码



改好了,不过没有试验成没成功,LZ自己试试吧。。。

如果出错了还望原谅{/gg}{/gg}
作者: L_yugi    时间: 2008-4-25 05:15
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-25 05:21
那个,你最好能把范例传一下,因为我不知道你修改了哪些,给我范例我下载去试验1下
作者: L_yugi    时间: 2008-4-26 04:01
提示: 作者被禁止或删除 内容自动屏蔽
作者: 水迭澜    时间: 2008-4-26 04:04
那个,RTAB本身不是齐时战斗么?
作者: havealook    时间: 2008-4-26 04:07
回水斑斑,齐时和即时是不同的。。。
作者: havealook    时间: 2008-4-26 04:25
不过,我仔细看了看你提供的那个脚本

我发现,它本身已经整合了齐时到RTAB中
齐时不就是人物和怪物可以同时出击吗?
你没看到那效果可能是因为,你主角的速度太快了(那个范例1开始就设置主角速度极快),1些小兵追不上而导致没有同时发招的时候
作者: L_yugi    时间: 2008-4-26 04:31
提示: 作者被禁止或删除 内容自动屏蔽
作者: L_yugi    时间: 2008-4-26 04:33
提示: 作者被禁止或删除 内容自动屏蔽
作者: L_yugi    时间: 2008-4-26 04:37
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-26 04:42
不要连帖。。。

主角速度是在数据库-------角色里面设定的(那个范例设置角色1开始就99级)
还有,不过我测试的结果是任何技能都是齐时的
作者: L_yugi    时间: 2008-4-26 04:52
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-26 05:04
其实,那不是什么问题

所谓齐时战斗,就是在1方发完招后另1方立即显示发招动画
实际上,RMXP不能处理2个动画同时显示
齐时战斗还不能达到真正齐时

80桢以内,由于动作短,所以看起来几乎是同时的
而超过80桢,这种时间差就变得明显了
作者: L_yugi    时间: 2008-4-26 05:21
提示: 作者被禁止或删除 内容自动屏蔽
作者: L_yugi    时间: 2008-4-26 05:29
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-26 05:32
。。。。无语,我等会再试试。。。
明天答复你。。。
作者: L_yugi    时间: 2008-4-26 05:38
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-26 16:48
改好了
把你之前发上来的地方换成:
  1. def update_phase4_step3(battler)
  2.    # ヘルプウィンドウの更新。アクションの種別で分岐
  3.    case battler.current_action.kind
  4.    when 0  # 基本
  5.      if battler.current_action.basic == 1
  6.        @help_window.set_text($data_system.words.guard, 1)
  7.        @help_wait = @help_time
  8.      end
  9. #========RTAB 1.16==================================      
  10.      if battler.current_action.basic == 2
  11.        # 逃げる
  12.        @help_window.set_text("逃げる", 1)
  13.        @help_wait = @help_time
  14.        battler.escape
  15.        battler.phase = 4
  16.        return
  17.      end
  18. #===================================================        
  19.    when 1  # スキル
  20.      skill =  $data_skills[battler.current_action.skill_id]
  21.      @help_window.set_text(skill.name, 1)
  22.      @help_wait = @help_time
  23.    when 2  # アイテム
  24.      item = $data_items[battler.current_action.item_id]
  25.      @help_window.set_text(item.name, 1)
  26.      @help_wait = @help_time
  27.    end
  28.    # 行動側アニメーション (ID が 0 の場合は白フラッシュ)
  29.    if battler.anime1 == 0
  30.      battler.white_flash = true
  31.      battler.wait = 5
  32.      # カメラ設定
  33.      if battler.target[0].is_a?(Game_Enemy)
  34.        camera_set(battler)
  35.      end
  36.    else
  37.      battler.animation.push([battler.anime1, true])
  38.      speller = synthe?(battler)
  39.      if speller != nil
  40.        for spell in speller
  41.          if spell != battler
  42.            if spell.current_action.spell_id == 0
  43.              spell.animation.push([battler.anime1, true])
  44.            else
  45.              skill = spell.current_action.spell_id
  46.              spell.animation.push([$data_skills[skill].animation1_id, true])
  47.              spell.current_action.spell_id = 0
  48.            end
  49.          end
  50.        end
  51.      end
  52.      battler.wait = 2 * $data_animations[battler.anime1].frame_max - 10
  53.    end
  54. #################################################################
  55.   for target in battler.target
  56.      unless battler.anime2 == 0
  57.        battler.wait = 1 * $data_animations[battler.anime2].frame_max - 10
  58.      end
  59.    end
  60. #################################################################
  61.    # ステップ 4 に移行
  62.    battler.phase = 4
  63. end
  64. #--------------------------------------------------------------------------
  65. # ● フレーム更新 (メインフェーズ ステップ 4 : 対象側アニメーション)
  66. #--------------------------------------------------------------------------
  67. def update_phase4_step4(battler)
  68.    # カメラ設定
  69.    if battler.target[0].is_a?(Game_Enemy) and battler.anime1 != 0
  70.       camera_set(battler)
  71.    end
  72.    # 対象側アニメーション
  73. ####################
  74.     #这里被我删了
  75. ####################
  76.    # ステップ 5 に移行
  77.    battler.phase = 5
  78. end
复制代码


但我不知道是不是真的像你说的一样能齐时。。。
作者: L_yugi    时间: 2008-4-26 19:33
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-26 19:39
那就放弃此功能吧。。。
不可能绝对同时
认可吧。。。。。  - - [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: lldjjf    时间: 2008-4-26 20:03
提示: 作者被禁止或删除 内容自动屏蔽




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