赞 | 0 |
VIP | 30 |
好人卡 | 1 |
积分 | 1 |
经验 | 21724 |
最后登录 | 2016-5-28 |
在线时间 | 451 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 451 小时
- 注册时间
- 2007-6-16
- 帖子
- 390
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有帐号?注册会员
x
本帖最后由 ad1234a 于 2009-7-6 21:05 编辑
一开始就出现以下的提示:
出错脚本如下(这个是应用于全动画战斗内战斗图标对鼠标的支持):- if self.active and @item_max >
- 0 and @index >= 0 and $game_temp != nil and
- $scene.is_a?(Scene_Battle) and $scene.actor_command_active?
- #$Scene_Battle and $scene.actor_command_active?
- mouse_x, mouse_y = Mouse.get_mouse_pos
- qx = 25
- qy = 25
- # 攻击
- if mouse_x > 90 - qx and mouse_x < 128 - qx and mouse_y > 285 - qy and mouse_y < 350 - qy
- @index = 0
- if @last_index != nil and @last_index != @index
- $game_system.se_play($data_system.cursor_se)
- @last_index = @index
- end
- end
- # 仙术
- if mouse_x > 85 - qx and mouse_x < 130 - qx and mouse_y > 265 - qy and mouse_y < 295 - qy
- @index = 1
- if @last_index != nil and @last_index != @index
- $game_system.se_play($data_system.cursor_se)
- @last_index = @index
- end
- end
- # 物品
- if mouse_x > 65 - qx and mouse_x < 109 - qx and mouse_y > 320 - qy and mouse_y < 405 - qy
- @index = 2
- if @last_index != nil and @last_index != @index
- $game_system.se_play($data_system.cursor_se)
- @last_index = @index
- end
- end
- # 防御
- if mouse_x > 60 - qx and mouse_x < 95 - qx and mouse_y > 280 - qy and mouse_y < 330 - qy
- @index = 3
- if @last_index != nil and @last_index != @index
- $game_system.se_play($data_system.cursor_se)
- @last_index = @index
- end
- end
- # 逃跑
- if mouse_x > 125 - qx and mouse_x < 145 - qx and mouse_y > 330 - qy and mouse_y < 420 - qy
- @index = 4
- if @last_index != nil and @last_index != @index
- $game_system.se_play($data_system.cursor_se)
- @last_index = @index
- end
- end
-
- if Mouse.trigger?(Mouse:EFT)
- $scene.mousetrigger(1)
- end
- end
复制代码 |
|