赞 | 23 |
VIP | 207 |
好人卡 | 31 |
积分 | 31 |
经验 | 48797 |
最后登录 | 2024-11-30 |
在线时间 | 1535 小时 |
Lv3.寻梦者 孤独守望
- 梦石
- 0
- 星屑
- 3137
- 在线时间
- 1535 小时
- 注册时间
- 2006-10-16
- 帖子
- 4321
|
- class Interpreter
- def something(id)
- $t = false
- event = $game_map.events[id]
- if event.y == $game_player.y
- if event.x < $game_player.x and $game_player.direction == 4
- $t = true
- elsif event.x > $game_player.x and $game_player.direction == 6
- $t = true
- end
- elsif event.x == $game_player.x
- if event.y < $game_player.y and $game_player.direction == 8
- $t = true
- elsif event.y > $game_player.y and $game_player.direction == 2
- $t = true
- end
- end
-
- if event.x == $game_player.x
- for i in [event.y,$game_player.y].min+2..[event.y,$game_player.y].max
- $t = false if $game_player.passable?(event.x,i-1,2) == false
- end
- end
- if event.y == $game_player.y
- for i in [event.x,$game_player.x].min+2..[event.x,$game_player.x].max
- $t = false if $game_player.passable?(i-1,event.y,6) == false
- end
- end
- return $t
- end
- end
复制代码
应该是有Bug的……只不过我是没有耐心去调试了
以后再也不接这种逻辑任务了囧 |
|