Project1

标题: 齐时战斗能用主战那个待机,挨打,防御,倒地动画吗? [打印本页]

作者: alonescud    时间: 2008-4-26 10:43
标题: 齐时战斗能用主战那个待机,挨打,防御,倒地动画吗?
如题! [LINE]1,#dddddd[/LINE]版务信息:本贴由楼主自主结贴~
作者: lldjjf    时间: 2008-4-26 14:58
提示: 作者被禁止或删除 内容自动屏蔽
作者: havealook    时间: 2008-4-26 17:21
LZ还是先学学脚本
再看看教程:http://rpg.blue/web/htm/news453.htm
弄懂原理后自己调试

不要直接用脚本
作者: ∮縼葎∮    时间: 2008-4-26 19:09
提示: 作者被禁止或删除 内容自动屏蔽
作者: alonescud    时间: 2008-4-26 19:44
我试了下,好像不行```我的scene battle 4设置了齐时战斗,是这样,
我只想要挨打和防御动作 , 能不能帮我调一下



#--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  #--------------------------------------------------------------------------
  def update_phase4_step3
    # 行动方动画 (ID 为 0 的情况下是白色闪烁)
    if @animation1_id == 0
      @active_battler.white_flash = true
    else
      @active_battler.animation_id = @animation1_id
      @active_battler.animation_hit = true
    end
     # 对像方动画
    for target in @target_battlers
      target.animation_id = @animation2_id
      target.animation_hit = (target.damage != "Miss")
    end
    # 移至步骤 4
    @phase4_step = 4
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 4 : 对像方动画)
  #--------------------------------------------------------------------------
  def update_phase4_step4
   # 限制动画长度、最低 8 帧
    @wait_count = 8
    # 移至步骤 5
    @phase4_step = 5
  end
  #--------------------------------------------------------------------------
  # ● 刷新画面 (主回合步骤 5 : 显示伤害)
  #--------------------------------------------------------------------------
  def update_phase4_step5
    # 隐藏帮助窗口
    @help_window.visible = false
    # 刷新状态窗口
    @status_window.refresh
    # 显示伤害
    for target in @target_battlers
      if target.damage != nil
        target.damage_pop = true
      end
    end
    # 移至步骤 6
    @phase4_step = 6
  end
代码复制
  1.  



作者: dbshy    时间: 2008-4-26 19:49
可以用,两个不冲突,最好自己先看懂原理

作者: havealook    时间: 2008-4-26 19:52
  1. #--------------------------------------------------------------------------
  2. # ● 刷新画面 (主回合步骤 3 : 行动方动画)
  3. #--------------------------------------------------------------------------
  4. def update_phase4_step3
  5.    # 行动方动画 (ID 为 0 的情况下是白色闪烁)
  6.    if @animation1_id == 0
  7.      @active_battler.white_flash = true
  8.    else
  9.      @active_battler.animation_id = @animation1_id
  10.      @active_battler.animation_hit = true
  11.    end
  12.     # 对像方动画
  13.    for target in @target_battlers

  14.      target.animation_id = @animation2_id
  15.      target.animation_hit = (target.damage != "Miss")
  16. ################################添加的#############################
  17.      if target.is_a?(Game_Actor)
  18.        target.battler_name = target.battler_name.split(/★/)[0]
  19.        if (target.current_action.kind == 0 and target.current_action.basic == 1) or target.damage == "Miss" or target.damage.to_i <= 0
  20.          target.battler_name = target.battler_name + "★3"
  21.        else
  22.          target.battler_name = target.battler_name + "★4"
  23.        end
  24.      end
  25.    end
  26.    # 移至步骤 4
  27.    @phase4_step = 4
  28. end
  29. #--------------------------------------------------------------------------
  30. # ● 刷新画面 (主回合步骤 4 : 对像方动画)
  31. #--------------------------------------------------------------------------
  32. def update_phase4_step4
  33.   # 限制动画长度、最低 8 帧
  34.    @wait_count = 8
  35.    # 移至步骤 5
  36.    @phase4_step = 5
  37. end
  38. #--------------------------------------------------------------------------
  39. # ● 刷新画面 (主回合步骤 5 : 显示伤害)
  40. #--------------------------------------------------------------------------
  41. def update_phase4_step5
  42.    # 隐藏帮助窗口
  43.    @help_window.visible = false
  44.    # 刷新状态窗口
  45.    @status_window.refresh
  46.    # 显示伤害
  47.    for target in @target_battlers
  48.      if target.damage != nil
  49.        target.damage_pop = true
  50.      end
  51.    end
  52.    # 移至步骤 6
  53.    @phase4_step = 6
  54. end
复制代码


已修改

接着按照教学里面除了   
# ● 刷新画面 (主回合步骤 4 : 对像方动画) ★
修改的以外的修改地方进行修改
[LINE]1,#dddddd[/LINE]版主对此帖的认可:『havealook一直都很熱心,所以稍微獎勵一下吧~』,积分『+200』。 [LINE]1,#dddddd[/LINE]系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
作者: alonescud    时间: 2008-4-26 20:23
非常感谢havealook!




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