查看: 1910|回复: 7

齐时战斗能用主战那个待机,挨打,防御,倒地动画吗?

  [复制链接]
梦石
0
星屑
65
在线时间
13 小时
注册时间
2008-1-11
回帖
287
发表于 2008-4-26 10:43:38 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
如题!
版务信息:本贴由楼主自主结贴~
头像被屏蔽
梦石
0
星屑
50
在线时间
1 小时
注册时间
2007-12-15
回帖
233
发表于 2008-4-26 14:58:47 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

梦石
0
星屑
50
在线时间
27 小时
注册时间
2008-2-13
回帖
1700
发表于 2008-4-26 17:21:46 | 显示全部楼层
LZ还是先学学脚本
再看看教程:http://rpg.blue/web/htm/news453.htm
弄懂原理后自己调试

不要直接用脚本
好吧,果然换个签名就没人认识我了。我承认我被时间埋没了
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-4-26
回帖
7
发表于 2008-4-26 19:09:56 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

梦石
0
星屑
65
在线时间
13 小时
注册时间
2008-1-11
回帖
287
 楼主| 发表于 2008-4-26 19:44:22 | 显示全部楼层
我试了下,好像不行```我的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[code][/code]

回复

使用道具 举报

辉瑞中国首席研究员<

梦石
0
星屑
50
在线时间
142 小时
注册时间
2008-1-18
回帖
2059
发表于 2008-4-26 19:49:54 | 显示全部楼层
可以用,两个不冲突,最好自己先看懂原理
来6r就是等某位仁兄的巨坑

褴褛着身行无端,囊中羞涩空心酸。
平生几无得意事,倒塔泡面宅寝室。
惟羡隔壁高帅富,雨露春风月夜声。
青丝无处觅其踪,只有硬盘苍井空。
莫云男儿空悲愁,鸿鹄岂不天际游。
坐断天下执鹿首,千百金帛万兜鍪。
夜深忽梦某年月,再见女神欲语迟。
吊丝终有逆袭日,木耳再无回粉时。
回复

使用道具 举报

梦石
0
星屑
50
在线时间
27 小时
注册时间
2008-2-13
回帖
1700
发表于 2008-4-26 19:52:35 | 显示全部楼层
  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 : 对像方动画) ★
修改的以外的修改地方进行修改

版主对此帖的认可:『havealook一直都很熱心,所以稍微獎勵一下吧~』,积分『+200』。
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
好吧,果然换个签名就没人认识我了。我承认我被时间埋没了
回复

使用道具 举报

梦石
0
星屑
65
在线时间
13 小时
注册时间
2008-1-11
回帖
287
 楼主| 发表于 2008-4-26 20:23:07 | 显示全部楼层
非常感谢havealook!
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部