赞 | 66 |
VIP | 397 |
好人卡 | 580 |
积分 | 22 |
经验 | 311270 |
最后登录 | 2022-3-9 |
在线时间 | 4033 小时 |
Lv3.寻梦者 (版主) …あたしは天使なんかじゃないわ
- 梦石
- 0
- 星屑
- 2208
- 在线时间
- 4033 小时
- 注册时间
- 2010-10-4
- 帖子
- 10779
|
本帖最后由 taroxd 于 2014-5-25 18:49 编辑
添加脚本:
class Game_Map DIR8_4 = [nil,[4,2],[5,2],[6,2],[4,5],[5,5],[6,5],[4,8],[5,8],[6,8]] def round_xy_with_direction(x, y, d) x = round_x_with_direction(x, DIR8_4[d][0]) y = round_y_with_direction(y, DIR8_4[d][1]) return x, y end end class Game_Player def check_event_trigger_there(triggers) x, y = $game_map.round_xy_with_direction(@x, @y, @direction) start_map_event(x, y, triggers, true) return if $game_map.any_event_starting? return unless $game_map.counter?(x, y) x, y = $game_map.round_xy_with_direction(x, y, @direction) start_map_event(x, y, triggers, true) end end
class Game_Map
DIR8_4 = [nil,[4,2],[5,2],[6,2],[4,5],[5,5],[6,5],[4,8],[5,8],[6,8]]
def round_xy_with_direction(x, y, d)
x = round_x_with_direction(x, DIR8_4[d][0])
y = round_y_with_direction(y, DIR8_4[d][1])
return x, y
end
end
class Game_Player
def check_event_trigger_there(triggers)
x, y = $game_map.round_xy_with_direction(@x, @y, @direction)
start_map_event(x, y, triggers, true)
return if $game_map.any_event_starting?
return unless $game_map.counter?(x, y)
x, y = $game_map.round_xy_with_direction(x, y, @direction)
start_map_event(x, y, triggers, true)
end
end
|
评分
-
查看全部评分
|