设为首页收藏本站

仙剑之十里坡

 找回密码
 加入我们

QQ登录

只需一步,快速开始

搜索
楼主: 仙剑轩辕
打印 上一主题 下一主题

帮朋友找个高手写一个脚本 进来在说

   关闭 [复制链接]

28

主题

11

听众

5325

积分

管理员

昨日黄昏

管理员

  • TA的每日心情

    2010-9-25 00:07
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    精华
    5
    积分
    5325
    历练
    10
    声望
    119
    人气
    141

    润泽万物 匠心独运

    单身中……
    帮我摆脱单身吧
    1
    发表于 2010-6-6 23:38:07 |显示全部楼层
    全局搜索update_phase4_step4 如果改了齐时战斗,还请修改update_phase4_step3

    然后
    for target in @target_battlers
          target.animation_id = @animation2_id

    改成
    for target in @target_battlers
    if target.states.include?(x)
    target.animation_id = @animation2_id
    target.animation_id = @animation2_id
    else
    target.animation_id = @animation2_id
    end
    这里就是播放两遍战攻击动画

    然后修改伤害。

    在Game_Battler 3中
    找到def attack_effect(attacker)

    在if self.damage > 0
    下面加上
    if attacker.states.include?(X)
              self.damage *= 2
              self.critical = true
           else
            if rand(100) < 4 * attacker.dex / self.agi
              self.damage *= 2
              self.critical = true
            end
          end就是双倍伤害。

    我自己没有试验,应该没有什么问题

    X号状态就是数据库状态里面的内容,自己定义一下,然后把X换掉就好
    回复

    使用道具 举报

    28

    主题

    11

    听众

    5325

    积分

    管理员

    昨日黄昏

    管理员

  • TA的每日心情

    2010-9-25 00:07
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    精华
    5
    积分
    5325
    历练
    10
    声望
    119
    人气
    141

    润泽万物 匠心独运

    单身中……
    帮我摆脱单身吧
    2
    发表于 2010-6-9 19:48:32 |显示全部楼层
    偶汗……

    自己尝试一下再说能不能行嘛~不能行提供一下报错的截图,帮你慢慢改整,

    毕竟游戏是你的嘛,呵呵。习惯直接要工程就找别人做下吧,毕竟我这边事情很多了,已经不是全职的RM人了。
    回复

    使用道具 举报

    28

    主题

    11

    听众

    5325

    积分

    管理员

    昨日黄昏

    管理员

  • TA的每日心情

    2010-9-25 00:07
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    精华
    5
    积分
    5325
    历练
    10
    声望
    119
    人气
    141

    润泽万物 匠心独运

    单身中……
    帮我摆脱单身吧
    3
    发表于 2010-6-11 18:02:29 |显示全部楼层
    汗汗- -失误,忘记加普通攻击判定

    for target in @target_battlers
    if target.states.include?(x)
    if @active_battler.current_action.kind = 0 and @active_battler.current_action.basic = 0
    target.animation_id = @animation2_id
    target.animation_id = @animation2_id
    else
    target.animation_id = @animation2_id
    else
    target.animation_id = @animation2_id
    end
    回复

    使用道具 举报

    28

    主题

    11

    听众

    5325

    积分

    管理员

    昨日黄昏

    管理员

  • TA的每日心情

    2010-9-25 00:07
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    精华
    5
    积分
    5325
    历练
    10
    声望
    119
    人气
    141

    润泽万物 匠心独运

    单身中……
    帮我摆脱单身吧
    4
    发表于 2010-6-12 21:43:06 |显示全部楼层
    def update_phase4_step4
        # 对像方动画
        for target in @target_battlers
    if target.states.include?(x)
    if @active_battler.current_action.kind = 0 and @active_battler.current_action.basic = 0
    target.animation_id = @animation2_id
    target.animation_id = @animation2_id
    target.animation_hit = (target.damage != "Miss")
    else
    target.animation_id = @animation2_id
          target.animation_hit = (target.damage != "Miss")
        end
       
    else
    target.animation_id = @animation2_id
          target.animation_hit = (target.damage != "Miss")
        end
      end
      
        # 限制动画长度、最低 8 帧
        @wait_count = 8
        # 移至步骤 5
        @phase4_step = 5
      end


    替换整个定义就好
    回复

    使用道具 举报

    28

    主题

    11

    听众

    5325

    积分

    管理员

    昨日黄昏

    管理员

  • TA的每日心情

    2010-9-25 00:07
  • 签到天数: 3 天

    [LV.2]偶尔看看I

    精华
    5
    积分
    5325
    历练
    10
    声望
    119
    人气
    141

    润泽万物 匠心独运

    单身中……
    帮我摆脱单身吧
    5
    发表于 2010-6-14 00:12:18 |显示全部楼层
    我汗~!我都做好自己试验成功了啊- -把你Scene_Battle 4’
    贴上来。老夫看看
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 加入我们

    手机版|Archiver|仙剑之十里坡 ( 苏ICP备11022766号 )  

    GMT+8, 2024-6-3 16:08 , Processed in 0.393249 second(s), 37 queries .

    Powered by Discuz! X2.5

    © 2001-2012 Comsenz Inc.

    回顶部