查看: 1116|回复: 6

使用药品的判断词语怎么找

  [复制链接]
头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-25
回帖
131
发表于 2008-11-28 06:19:52 | 显示全部楼层 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽

今、空を見上げ

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-11
回帖
1991
发表于 2008-11-28 06:42:49 | 显示全部楼层
使用物品 添加状态 ,
使用思路 当 人物某状态附加时
详细搜索 "状态法"
做任何事,都不要为自己找借口。任何事都不存在困难的借口。你只有3个字“做得到”
回复

使用道具 举报

殲滅天使·玲<

梦石
0
星屑
126
在线时间
204 小时
注册时间
2008-2-20
回帖
2172

贵宾

发表于 2008-11-28 06:46:02 | 显示全部楼层
以下引用殲滅天使·玲于2008-11-27 22:42:49的发言:

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

玲儿好~

最近好久不上.冒个泡~

PS:要VIP?20够不够?
版主对此帖的评论:『灌水。』,积分『-50』。这些被扣积分的一半会用于对本帖正确答案的悬赏。

发帖前请看版规。进水区请到版规贴留名哦亲~chu~❤
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-25
回帖
131
 楼主| 发表于 2008-11-28 07:01:20 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

今、空を見上げ

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-11
回帖
1991
发表于 2008-11-28 07:04:22 | 显示全部楼层
http://rpg.blue/web/htm/news163.htm

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

你要的效果是不是使用药以后 判断是某个人物使用吗?
如果不是无视掉吧
做任何事,都不要为自己找借口。任何事都不存在困难的借口。你只有3个字“做得到”
回复

使用道具 举报

头像被屏蔽
梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-3-25
回帖
131
 楼主| 发表于 2008-11-28 07:04:36 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

今、空を見上げ

梦石
0
星屑
50
在线时间
0 小时
注册时间
2007-8-11
回帖
1991
发表于 2008-11-28 08:05:41 | 显示全部楼层
      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
复制代码

就是把 物品改为待机了 ,物品的名称显示你就自己改吧相信你应该认得
系统信息:本贴由本区版主认可为正确答案,66RPG感谢您的热情解答~
做任何事,都不要为自己找借口。任何事都不存在困难的借口。你只有3个字“做得到”
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部