查看: 781|回复: 1

这脚本这里要怎么改啊?

  [复制链接]
梦石
0
星屑
50
在线时间
438 小时
注册时间
2009-1-6
回帖
203
发表于 2009-1-9 04:05:28 | 显示全部楼层 |阅读模式

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

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

×
# ● 刷新画面 (主回合步骤 4 : 对像方动画)
  #--------------------------------------------------------------------------
  def update_phase4_step4
    # 刷新状态窗口
    @status_window.refresh
    # 对像方动画
    for target in @target_battlers
      #target.animation_id = @animation2_id
      #target.animation_hit = (target.damage != "Miss")
      if target.damage != nil
        target.damage_pop = true
        if target.damage != "Miss"
          r = rand(5)+10
          for i in 1..r
            Graphics.update
            Input.update
            update
            target.cp -= 1
            @battler_cp.ttbar[target].y = (142 - (target.cp * 135 / target.maxcp)) + 32-7
          end
        end
      end
    end
    # 限制动画长度、最低 8 帧
    #@wait_count = 4
    # 移至步骤 5
    @phase4_step = 5
  end
  #-------------------------------------------------------------------------



我每次战斗中使用复活技能(解除战斗不能的技能)就会显示上面脚本中的这句有问题
@battler_cp.ttbar[target].y = (142 - (target.cp * 135 / target.maxcp)) + 32-7
我才学了几天根本不懂脚本这东西- -我都不知道那里错了
可能是很基础的东西但我实在是不知道怎么改- -那位仁兄能帮下忙呢.


PS:刚刚学刚注册所以没积分- -。抱歉



此贴于 2009-1-11 22:51:12 被版主darkten提醒,请楼主看到后对本贴做出回应。
此贴于 2009-1-11 22:57:31 被版主darkten提醒,请楼主看到后对本贴做出回应。

綾川司の姫様<

梦石
0
星屑
50
在线时间
796 小时
注册时间
2007-12-20
回帖
4461

贵宾第3届短篇游戏大赛R剧及RMTV组亚军

发表于 2009-1-10 20:47:43 | 显示全部楼层
- -具体是出什么问题,你这脚本是干啥的,光发这一段出来谁也搞不明白你怎么回事啊。
看似是用了CP脚本,如果太长就直接上工程。

生命即是责任。自己即是世界。
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部