Project1

标题: 请问在对话时如何使之前设置接近玩家的怪停止移动 [打印本页]

作者: 电车之熊    时间: 2015-10-1 12:49
标题: 请问在对话时如何使之前设置接近玩家的怪停止移动
我在迷宫中 将怪设置为接近玩家。就只那种最常见的怪追只主角跑。但是

我迷宫还有其他NPC我在与NPC对话时,怪不暂停。这·····

呵呵,又是无聊的问题,呵呵~~~
作者: 冷峻逸    时间: 2015-10-1 13:37
提示: 作者被禁止或删除 内容自动屏蔽
作者: VIPArcher    时间: 2015-10-1 15:55
  1. class Game_Event; def update_move; return if $game_message.has_text?; super end end
复制代码
未测试,爪机打的,也许拼错了
作者: 3106345123    时间: 2015-10-1 17:47
  1. class Game_Map
  2.   def update_events
  3.     @events.each_value {|event| event.update } if $game_switches[2] != true
  4.     @common_events.each {|event| event.update }
  5.   end
  6. end
复制代码
效果:使2号开关开启时NPC不会移动





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