Project1

标题: 发现RMXP注释错误一处 [打印本页]

作者: 蝉岭Cicada    时间: 2014-10-11 18:53
标题: 发现RMXP注释错误一处
本帖最后由 蝉岭Cicada 于 2014-10-11 18:54 编辑

各位请打开XP的脚本编辑器

然后找到 Game_Player 的 158行

找到注释写着 # 正面的元件是计数器的情况下

其实正确的是这样 # 正面的元件是柜台属性的情况下




RUBY 代码复制
  1. #--------------------------------------------------------------------------
  2.   # ● 正面事件的启动判定
  3.   #--------------------------------------------------------------------------
  4.   def check_event_trigger_there(triggers)
  5.     result = false
  6.     # 事件执行中的情况下
  7.     if $game_system.map_interpreter.running?
  8.       return result
  9.     end
  10.     # 计算正面坐标
  11.     new_x = @x + (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
  12.     new_y = @y + (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
  13.     # 全部事件的循环
  14.     for event in $game_map.events.values
  15.       # 事件坐标与目标一致的情况下
  16.       if event.x == new_x and event.y == new_y and
  17.          triggers.include?(event.trigger)
  18.         # 跳跃中以外的情况下、启动判定是正面的事件
  19.         if not event.jumping? and not event.over_trigger?
  20.           event.start
  21.           result = true
  22.         end
  23.       end
  24.     end
  25.     # 找不到符合条件的事件的情况下
  26.     if result == false
  27.       # 正面的元件是计数器的情况下
  28.       if $game_map.counter?(new_x, new_y)
  29.         # 计算 1 元件里侧的坐标
  30.         new_x += (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
  31.         new_y += (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
  32.         # 全事件的循环
  33.         for event in $game_map.events.values
  34.           # 事件坐标与目标一致的情况下
  35.           if event.x == new_x and event.y == new_y and
  36.              triggers.include?(event.trigger)
  37.             # 跳跃中以外的情况下、启动判定是正面的事件
  38.             if not event.jumping? and not event.over_trigger?
  39.               event.start
  40.               result = true
  41.             end
  42.           end
  43.         end
  44.       end
  45.     end
  46.     return result
  47.   end

作者: chd114    时间: 2014-10-11 18:56
你发错区了···
作者: 你最珍贵    时间: 2014-10-11 19:18
{:2_278:}可是发现这个有什么用
作者: myownroc    时间: 2014-10-11 22:09
默认脚本汉化注释的错误多了去了……
作者: 寒冷魔王    时间: 2014-10-11 22:14
正常,经常发现。
作者: 羁绊的守望者    时间: 2014-10-11 23:02
这种错误多了去了,要不要我都告诉LZ?
比如Spriteset_Battle里面
作者: 星尘泪    时间: 2014-10-12 16:19
提示: 作者被禁止或删除 内容自动屏蔽




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