查看: 1247|回复: 1

这三句话具体在脚本哪里体现

  [复制链接]
梦石
0
星屑
50
在线时间
4 小时
注册时间
2008-4-6
回帖
76
发表于 2008-10-26 18:23:19 | 显示全部楼层 |阅读模式

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

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

×
如题:

数据库,状态限制一栏的:

不能使用魔法。
普通攻击同伴。
普通攻击敌人。

要改成: 普通攻击同伴+普通攻击敌人,怎么改?

game-batter2里面好象没有这三个的选项。
此贴于 2008-10-27 12:42:41 被版主darkten提醒,请楼主看到后对本贴做出回应。
此贴于 2008-10-28 15:00:47 被版主darkten提醒,请楼主看到后对本贴做出回应。
版务信息:本贴由楼主自主结贴~
[

蚂蚁卡卡

梦石
0
星屑
116
在线时间
66 小时
注册时间
2007-12-16
回帖
2991
发表于 2008-10-26 19:56:50 | 显示全部楼层
Scene_battle 4 里
  1. # 行动方的战斗者是敌人的情况下
  2.       if @active_battler.is_a?(Game_Enemy)
  3.         if @active_battler.restriction == 3
  4.           target = $game_troop.random_target_enemy
  5.         elsif @active_battler.restriction == 2
  6.           target = $game_party.random_target_actor
  7.         else
  8.           index = @active_battler.current_action.target_index
  9.           target = $game_party.smooth_target_actor(index)
  10.         end
  11.       end
  12.       # 行动方的战斗者是角色的情况下
  13.       if @active_battler.is_a?(Game_Actor)
  14.         if @active_battler.restriction == 3
  15.           target = $game_party.random_target_actor
  16.         elsif @active_battler.restriction == 2
  17.           target = $game_troop.random_target_enemy
  18.         else
  19.           index = @active_battler.current_action.target_index
  20.           target = $game_troop.smooth_target_enemy(index)
  21.         end
  22.       end
复制代码

  1. 限制分为两个
  2. # 行动方的战斗者是敌人的情况下
  3.       if @active_battler.is_a?(Game_Enemy)
  4. restriction == 3 是攻击同伴 现在说是敌人攻击敌人
  5. target = $game_troop.random_target_enemy
  6. 随即目标是敌人

  7.       # 行动方的战斗者是角色的情况下
  8.       if @active_battler.is_a?(Game_Actor)
  9. restriction == 3 还是攻击同伴(一直是) 现在说是我攻击我
  10. target = $game_party.random_target_actor
  11. 随机目标是角色

  12. restriction == 0 无
  13. ==1 不能使用魔法 ==2随机敌人 ==3 随机同伴 ==4 不能动
复制代码


然后想怎么改应该明了了吧
系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~
《隋唐乱》完整解密版点击进入
米兰,让我怎么说离开……

曾经我也是一个有志青年,直到我膝盖中了一箭……

《隋唐乱》博客地址
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部