查看: 2284|回复: 10

[已经解决] 我的游戏不能开始战斗?

  [复制链接]
梦石
0
星屑
50
在线时间
451 小时
注册时间
2007-6-16
回帖
269
发表于 2009-7-6 20:59:30 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 ad1234a 于 2009-7-6 21:05 编辑

一开始就出现以下的提示:
1.JPG

出错脚本如下(这个是应用于全动画战斗内战斗图标对鼠标的支持):
  1. if self.active and @item_max >
  2. 0 and @index >= 0 and $game_temp != nil and
  3.        $scene.is_a?(Scene_Battle) and $scene.actor_command_active?
  4.        #$Scene_Battle and $scene.actor_command_active?
  5.       mouse_x, mouse_y = Mouse.get_mouse_pos
  6.       qx = 25
  7.       qy = 25
  8.       # 攻击
  9.       if mouse_x > 90 - qx and mouse_x < 128 - qx and mouse_y > 285 - qy and mouse_y < 350 - qy
  10.         @index = 0
  11.         if @last_index != nil and @last_index != @index
  12.           $game_system.se_play($data_system.cursor_se)
  13.           @last_index = @index
  14.         end
  15.       end
  16.       # 仙术
  17.       if mouse_x > 85 - qx and mouse_x < 130 - qx and mouse_y > 265 - qy and mouse_y < 295 - qy
  18.         @index = 1
  19.         if @last_index != nil and @last_index != @index
  20.           $game_system.se_play($data_system.cursor_se)
  21.           @last_index = @index
  22.         end
  23.       end
  24.       # 物品
  25.       if mouse_x > 65 - qx and mouse_x < 109 - qx and mouse_y > 320 - qy and mouse_y < 405 - qy
  26.         @index = 2
  27.         if @last_index != nil and @last_index != @index
  28.           $game_system.se_play($data_system.cursor_se)
  29.          @last_index = @index
  30.         end
  31.       end
  32.       # 防御
  33.       if mouse_x > 60 - qx and mouse_x < 95 - qx and mouse_y > 280 - qy and mouse_y < 330 - qy
  34.         @index = 3
  35.         if @last_index != nil and @last_index != @index
  36.           $game_system.se_play($data_system.cursor_se)
  37.           @last_index = @index
  38.         end
  39.       end
  40.       # 逃跑
  41.       if mouse_x > 125 - qx and mouse_x < 145 - qx and mouse_y > 330 - qy and mouse_y < 420 - qy
  42.         @index = 4
  43.         if @last_index != nil and @last_index != @index
  44.           $game_system.se_play($data_system.cursor_se)
  45.           @last_index = @index
  46.         end
  47.       end
  48.       
  49.       if Mouse.trigger?(Mouse:EFT)
  50.         $scene.mousetrigger(1)
  51.       end
  52.     end
复制代码
瑕米一个

℃ake

梦石
0
星屑
50
在线时间
8 小时
注册时间
2009-6-6
回帖
670
发表于 2009-7-6 21:00:27 | 显示全部楼层
对这段脚本不太了解,但是肯定是脚本的冲突。
回复

使用道具 举报

B

梦石
0
星屑
50
在线时间
26 小时
注册时间
2007-8-26
回帖
3622
发表于 2009-7-6 21:13:16 | 显示全部楼层
未定义actor_command_active?
脚本是转载来的,估计是少了actor_command_active?的定义~
可以再查看查看原转载脚本,估计楼主是漏了那个或者给删了~
回复

使用道具 举报

梦石
0
星屑
50
在线时间
451 小时
注册时间
2007-6-16
回帖
269
 楼主| 发表于 2009-7-7 07:20:06 | 显示全部楼层
未定义actor_command_active?
脚本是转载来的,估计是少了actor_command_active?的定义~
可以再查看查看原转载脚本,估计楼主是漏了那个或者给删了~
ONEWateR 发表于 2009-7-6 21:13


但是我将这个脚本应用于全动画战斗的工程是没有问题的,其它的不行啊.
瑕米一个
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2009-5-16
回帖
509
发表于 2009-7-7 07:52:06 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复

使用道具 举报

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

使用道具 举报

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

使用道具 举报

B

梦石
0
星屑
50
在线时间
26 小时
注册时间
2007-8-26
回帖
3622
发表于 2009-7-7 21:17:43 | 显示全部楼层
但是我将这个脚本应用于全动画战斗的工程是没有问题的,其它的不行啊.
ad1234a 发表于 2009-7-7 07:20


脚本冲突?
楼主可以将工程上传上来……
回复

使用道具 举报

梦石
0
星屑
105
在线时间
393 小时
注册时间
2008-11-7
回帖
256
发表于 2009-7-8 10:39:47 | 显示全部楼层
大约是脚本冲突
回复

使用道具 举报

梦石
0
星屑
50
在线时间
451 小时
注册时间
2007-6-16
回帖
269
 楼主| 发表于 2009-7-9 01:30:46 | 显示全部楼层
脚本冲突?
楼主可以将工程上传上来……
ONEWateR 发表于 2009-7-7 21:17


工程:
Project2.rar (335.57 KB, 下载次数: 24)

PS:这个不是原工程的
瑕米一个
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部