设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 2241|回复: 3
打印 上一主题 下一主题

[已经解决] 嘲讽技能的问题

[复制链接]

Lv1.梦旅人

梦石
0
星屑
50
在线时间
47 小时
注册时间
2013-3-9
帖子
39
跳转到指定楼层
1
发表于 2014-2-9 18:02:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

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

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

x
本帖最后由 花落寥秋 于 2014-2-10 09:19 编辑

战斗测试中加上了嘲讽技能的人物,阵亡后怎么还会被攻击啊,敌人跑到他的位置停一下又回去了(我用的是横版战斗),请问怎么解除这种情况?(脚本是我在论坛里挖到的那种比较常用的)

Lv1.梦旅人

薄凉看客

梦石
0
星屑
50
在线时间
1269 小时
注册时间
2010-6-20
帖子
1316
2
发表于 2014-2-9 18:29:59 | 只看该作者
试试这个
  1. Wall = 18 # 嘲讽状态id
  2. class Scene_Battle
  3.   def make_basic_action_result
  4.     # 攻击的情况下
  5.     if @active_battler.current_action.basic == 0
  6.       # 设置攻击 ID
  7.       @animation1_id = @active_battler.animation1_id
  8.       @animation2_id = @active_battler.animation2_id
  9.       # 行动方的战斗者是敌人的情况下
  10.       if @active_battler.is_a?(Game_Enemy)
  11.         if @active_battler.restriction == 3
  12.           target = $game_troop.random_target_enemy
  13.         elsif @active_battler.restriction == 2
  14.           target = $game_party.random_target_actor
  15.         else
  16.           index = @active_battler.current_action.target_index
  17.           target = $game_party.smooth_target_actor(index)
  18.         end
  19.         a = []
  20.         for i in $game_party.actors
  21.           if i.state? Wall
  22.             unless i.state? 1
  23.               a << i
  24.             end
  25.           end
  26.         end
  27.         if a.size > 0
  28.         a = a[rand(a.size)]
  29.         @target_battlers = [a]
  30.         for target in @target_battlers
  31.           target.attack_effect(@active_battler)
  32.         end
  33.         return
  34.         end
  35.       end
  36.       # 行动方的战斗者是角色的情况下
  37.       if @active_battler.is_a?(Game_Actor)
  38.         if @active_battler.restriction == 3
  39.           target = $game_party.random_target_actor
  40.         elsif @active_battler.restriction == 2
  41.           target = $game_troop.random_target_enemy
  42.         else
  43.           index = @active_battler.current_action.target_index
  44.           target = $game_troop.smooth_target_enemy(index)
  45.         end
  46.       end
  47.       # 设置对像方的战斗者序列
  48.       @target_battlers = [target]
  49.       # 应用通常攻击效果
  50.       for target in @target_battlers
  51.         target.attack_effect(@active_battler)
  52.       end
  53.       return
  54.     end
  55.     # 防御的情况下
  56.     if @active_battler.current_action.basic == 1
  57.       # 帮助窗口显示"防御"
  58.       @help_window.set_text($data_system.words.guard, 1)
  59.       return
  60.     end
  61.     # 逃跑的情况下
  62.     if @active_battler.is_a?(Game_Enemy) and
  63.        @active_battler.current_action.basic == 2
  64.       #  帮助窗口显示"逃跑"
  65.       @help_window.set_text("逃跑", 1)
  66.       # 逃跑
  67.       @active_battler.escape
  68.       return
  69.     end
  70.     # 什么也不做的情况下
  71.     if @active_battler.current_action.basic == 3
  72.       # 清除强制行动对像的战斗者
  73.       $game_temp.forcing_battler = nil
  74.       # 移至步骤 1
  75.       @phase4_step = 1
  76.       return
  77.     end
  78.   end
  79. end
复制代码
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
47 小时
注册时间
2013-3-9
帖子
39
3
 楼主| 发表于 2014-2-10 09:18:44 | 只看该作者
哇咔咔,谢谢,搞定了
回复 支持 反对

使用道具 举报

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

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2024-5-5 09:30

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表