本帖最后由 MCCF 于 2020-3-17 13:36 编辑
找到我的脚本中的以下部分:
#-------------------------------------------------------------------------- # ● 自动移动的更新 #-------------------------------------------------------------------------- alias typath_update_self_movement update_self_movement def update_self_movement if typath? if @stop_count > stop_count_threshold if @move_type == 2 move_type_toward_player elsif near_the_screen? case @move_type when 1; move_type_random when 2; move_type_toward_player when 3; move_type_custom end end end else typath_update_self_movement end end
#--------------------------------------------------------------------------
# ● 自动移动的更新
#--------------------------------------------------------------------------
alias typath_update_self_movement update_self_movement
def update_self_movement
if typath?
if @stop_count > stop_count_threshold
if @move_type == 2
move_type_toward_player
elsif near_the_screen?
case @move_type
when 1; move_type_random
when 2; move_type_toward_player
when 3; move_type_custom
end
end
end
else
typath_update_self_movement
end
end
找到这一行:
在这一行上方新增:
- return if @move_type == 0
复制代码 |