Project1

标题: 使用药品的判断词语怎么找 [打印本页]

作者: 超越极限    时间: 2008-11-28 06:19
提示: 作者被禁止或删除 内容自动屏蔽
作者: 殲滅天使·玲    时间: 2008-11-28 06:42
使用物品 添加状态 ,
使用思路 当 人物某状态附加时
详细搜索 "状态法"
作者: Ж纯Ж蓝Ж    时间: 2008-11-28 06:46
以下引用殲滅天使·玲于2008-11-27 22:42:49的发言:

使用物品 添加状态 ,
使用思路 当 人物某状态附加时
详细搜索 "状态法"

玲儿好~

最近好久不上.冒个泡~

PS:要VIP?20够不够? [LINE]1,#dddddd[/LINE]版主对此帖的评论:『灌水。』,积分『-50』。这些被扣积分的一半会用于对本帖正确答案的悬赏。
作者: 超越极限    时间: 2008-11-28 07:01
提示: 作者被禁止或删除 内容自动屏蔽
作者: 殲滅天使·玲    时间: 2008-11-28 07:04
http://rpg.blue/web/htm/news163.htm

判断状态的脚本写法我不太清楚 ,所以没办法写出来 Orz

你要的效果是不是使用药以后 判断是某个人物使用吗?
如果不是无视掉吧
作者: 超越极限    时间: 2008-11-28 07:04
提示: 作者被禁止或删除 内容自动屏蔽
作者: 殲滅天使·玲    时间: 2008-11-28 08:05
      when 3  # 物品
        # 演奏确定 SE
        $game_system.se_play($data_system.decision_se)
        # 设置行动
        @active_battler.current_action.kind = 0
        @active_battler.current_action.basic = 4
        # 转向下一位角色的指令输入
        phase3_next_actor
      end

你这个地方这样修改
然后在SCENE_BATTLE4之后 插入脚本
  1. class Scene_Battle
  2.     def make_basic_action_result
  3.     # 攻击的情况下
  4.     if @active_battler.current_action.basic == 0
  5.       # 设置攻击 ID
  6.       @animation1_id = @active_battler.animation1_id
  7.       @animation2_id = @active_battler.animation2_id
  8.       # 行动方的战斗者是敌人的情况下
  9.       if @active_battler.is_a?(Game_Enemy)
  10.         if @active_battler.restriction == 3
  11.           target = $game_troop.random_target_enemy
  12.         elsif @active_battler.restriction == 2
  13.           target = $game_party.random_target_actor
  14.         else
  15.           index = @active_battler.current_action.target_index
  16.           target = $game_party.smooth_target_actor(index)
  17.         end
  18.       end
  19.       # 行动方的战斗者是角色的情况下
  20.       if @active_battler.is_a?(Game_Actor)
  21.         if @active_battler.restriction == 3
  22.           target = $game_party.random_target_actor
  23.         elsif @active_battler.restriction == 2
  24.           target = $game_troop.random_target_enemy
  25.         else
  26.           index = @active_battler.current_action.target_index
  27.           target = $game_troop.smooth_target_enemy(index)
  28.         end
  29.       end
  30.       # 设置对像方的战斗者序列
  31.       @target_battlers = [target]
  32.       # 应用通常攻击效果
  33.       for target in @target_battlers
  34.         target.attack_effect(@active_battler)
  35.       end
  36.       return
  37.     end
  38.     # 防御的情况下
  39.     if @active_battler.current_action.basic == 1
  40.       # 帮助窗口显示"防御"
  41.       @help_window.set_text($data_system.words.guard, 1)
  42.       return
  43.     end
  44.     if @active_battler.current_action.basic == 4
  45.       # 帮助窗口显示"待機"
  46.       @help_window.set_text("待機", 1)
  47.       return
  48.     end
  49.     # 逃跑的情况下
  50.     if @active_battler.is_a?(Game_Enemy) and
  51.        @active_battler.current_action.basic == 2
  52.       #  帮助窗口显示"逃跑"
  53.       @help_window.set_text("逃跑", 1)
  54.       # 逃跑
  55.       @active_battler.escape
  56.       return
  57.     end
  58.     # 什么也不做的情况下
  59.     if @active_battler.current_action.basic == 3
  60.       # 清除强制行动对像的战斗者
  61.       $game_temp.forcing_battler = nil
  62.       # 移至步骤 1
  63.       @phase4_step = 1
  64.       return
  65.     end
  66.   end
  67. end
复制代码

就是把 物品改为待机了 ,物品的名称显示你就自己改吧相信你应该认得 [LINE]1,#dddddd[/LINE]系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~




欢迎光临 Project1 (https://rpg.blue/) Powered by Discuz! X3.1