查看: 2673|回复: 6

[随意闲聊] 发现RMXP注释错误一处

[复制链接]
梦石
0
星屑
50
在线时间
320 小时
注册时间
2014-9-2
回帖
244
发表于 2014-10-11 18:53:28 | 显示全部楼层 |阅读模式

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

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

×
本帖最后由 蝉岭Cicada 于 2014-10-11 18:54 编辑

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

然后找到 Game_Player 的 158行

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

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

点击展开/收起counter 可译作 柜台 or 计数器

这里是柜台



[pre lang="ruby" line="1"]  #--------------------------------------------------------------------------
  # ● 正面事件的启动判定
  #--------------------------------------------------------------------------
  def check_event_trigger_there(triggers)
    result = false
    # 事件执行中的情况下
    if $game_system.map_interpreter.running?
      return result
    end
    # 计算正面坐标
    new_x = @x + (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
    new_y = @y + (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
    # 全部事件的循环
    for event in $game_map.events.values
      # 事件坐标与目标一致的情况下
      if event.x == new_x and event.y == new_y and
         triggers.include?(event.trigger)
        # 跳跃中以外的情况下、启动判定是正面的事件
        if not event.jumping? and not event.over_trigger?
          event.start
          result = true
        end
      end
    end
    # 找不到符合条件的事件的情况下
    if result == false
      # 正面的元件是计数器的情况下
      if $game_map.counter?(new_x, new_y)
        # 计算 1 元件里侧的坐标
        new_x += (@direction == 6 ? 1 : @direction == 4 ? -1 : 0)
        new_y += (@direction == 2 ? 1 : @direction == 8 ? -1 : 0)
        # 全事件的循环
        for event in $game_map.events.values
          # 事件坐标与目标一致的情况下
          if event.x == new_x and event.y == new_y and
             triggers.include?(event.trigger)
            # 跳跃中以外的情况下、启动判定是正面的事件
            if not event.jumping? and not event.over_trigger?
              event.start
              result = true
            end
          end
        end
      end
    end
    return result
  end
[/pre]
梦石
0
星屑
9292
在线时间
2504 小时
注册时间
2011-5-20
回帖
14521

开拓者

发表于 2014-10-11 18:56:33 | 显示全部楼层
你发错区了···

点评

正常,LZ一向把这种贴发水区。  发表于 2014-10-11 22:15
你无处不在……另外你也是剧情党……  发表于 2014-10-11 22:14
水区不是?  发表于 2014-10-11 19:16
[img]http://service.t.sina.com.cn/widget/qmd/5339802982/c02e16bd/7.png
回复

使用道具 举报

故九江太守

梦石
0
星屑
314
在线时间
2158 小时
注册时间
2012-12-5
回帖
4323
发表于 2014-10-11 19:18:55 | 显示全部楼层
{:2_278:}可是发现这个有什么用

点评

看吧,都说了你发错区了···  发表于 2014-10-11 20:23
会误解脚本  发表于 2014-10-11 19:21
回复

使用道具 举报

梦石
0
星屑
2826
在线时间
2634 小时
注册时间
2013-1-16
回帖
5453

贵宾

发表于 2014-10-11 22:09:08 | 显示全部楼层
默认脚本汉化注释的错误多了去了……

点评

感觉每个人都知道了... 留个底以后找机会再丢出来 弄个集锦之类的...  发表于 2014-10-12 01:50
严重还发到水区…真的要这样吗  发表于 2014-10-12 01:16
觉得这个比较严重  发表于 2014-10-11 22:12
(Created by @喵kano)


施工现场:hotege.github.io
回复

使用道具 举报

寒

梦石
0
星屑
1049
在线时间
1391 小时
注册时间
2010-8-9
回帖
3301
发表于 2014-10-11 22:14:16 | 显示全部楼层
正常,经常发现。
回复

使用道具 举报

梦石
0
星屑
49
在线时间
200 小时
注册时间
2014-7-17
回帖
372
发表于 2014-10-11 23:02:37 | 显示全部楼层
这种错误多了去了,要不要我都告诉LZ?
比如Spriteset_Battle里面

点评

好啊 还有很多地方没研究  发表于 2014-10-11 23:51
好啊 还有很多地方没研究  发表于 2014-10-11 23:47

知其然,而不欲知其所以然,耻也!
回复

使用道具 举报

星尘泪 该用户已被删除
发表于 2014-10-12 16:19:44 | 显示全部楼层
提示: 作者被禁止或删除 内容自动屏蔽
回复

使用道具 举报

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

本版积分规则

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

在本版发帖返回顶部