查看: 1410|回复: 8

超级战斗(工程)

  [复制链接]

叶

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
回帖
649
发表于 2007-8-28 19:24:23 | 显示全部楼层 |阅读模式

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

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

×
target.battler_name = target.battler_name.split(/★/)[0]                  和         
@battler.battler_name = @battler.battler_name.split(/★/)[0]
这是什么意思,我用超级战斗时老是这两个错{/dk}
为什么啊!!!!
{/ll}{/ll}{/ll}另外,问一下超级战斗的敌人怎么设?
无签名,不解释

叶

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
回帖
649
发表于 2007-8-28 19:24:23 | 显示全部楼层 |阅读模式

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

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

×
target.battler_name = target.battler_name.split(/★/)[0]                  和         
@battler.battler_name = @battler.battler_name.split(/★/)[0]
这是什么意思,我用超级战斗时老是这两个错{/dk}
为什么啊!!!!
{/ll}{/ll}{/ll}另外,问一下超级战斗的敌人怎么设?
无签名,不解释

叶

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
回帖
649
 楼主| 发表于 2007-8-28 19:32:13 | 显示全部楼层
大家帮我看看,这是示范:
http://rpg.blue/upload_program/files/超级战斗.rar
开始时没错误,
但一进入战斗就发生错误了55555555555
{/ll}{/ll}
向右走战斗
{/bz}
无签名,不解释
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-4-10
回帖
35
发表于 2007-8-28 19:43:17 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

叶

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
回帖
649
 楼主| 发表于 2007-8-28 19:46:03 | 显示全部楼层
以下引用Eajoe^Lee于2007-8-28 11:43:17的发言:

将
@battler.battler_name = @battler.battler_name.split(/★/)[0]

改成:
@battler_name = @battler.battler_name.split(/★/)[0]

试试

战斗没问题了
但攻击时又显示       target.battler_name = target.battler_name.split(/★/)[0]
错------------------误!!!!{/ll}{/ll}{/ll}

就是这段:





#--------------------------------------------------------------------------
# ● 刷新画面 (主回合步骤 4 : 对像方动画) ★
#--------------------------------------------------------------------------
def update_phase4_step4
   # 对像方动画
   for target in @target_battlers
     target.animation_id = @animation2_id
     target.animation_hit = (target.damage != "Miss")
     if target.is_a?(Game_Actor)
       target.battler_name = target.battler_name.split(/★/)[0]
       if (target.current_action.kind == 0 and target.current_action.basic == 1) or target.damage == "Miss" or target.damage.to_i <= 0
         target.battler_name = target.battler_name + "★3"
       else
         target.battler_name = target.battler_name + "★4"
       end
     end
   end
   # 限制动画长度、最低 8 帧
   @wait_count = 8
   # 移至步骤 5
   @phase4_step = 5
end
无签名,不解释
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-4-10
回帖
35
发表于 2007-8-28 20:01:26 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

叶

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
回帖
649
 楼主| 发表于 2007-8-28 20:07:23 | 显示全部楼层
以下引用Eajoe^Lee于2007-8-28 12:01:26的发言:

我发现你漏了一个很重要的部分...

找到 Game_Battler 1  这个`

把第12行的attr_reader:battler_name

改成:

attr_accessor:battler_name


还有``把刚刚我叫你改的部分改回去``

恩恩,可是可以了,但我攻击时对方伤害怎么没有数字??
还有,会不知不觉胜利了
无签名,不解释
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-4-10
回帖
35
发表于 2007-8-28 20:15:23 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

叶

梦石
0
星屑
50
在线时间
94 小时
注册时间
2007-6-3
回帖
649
 楼主| 发表于 2007-8-28 20:16:14 | 显示全部楼层
以下引用Eajoe^Lee于2007-8-28 12:15:23的发言:

好像不单止没伤害数字..

连动画也没有...OT2...

恩恩!怎么回事?{/hx}还有对方死亡时还一动不动的站着这样了
无签名,不解释
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部