| 赞 | 0 |
| VIP | |
| 好人卡 | |
| 积分 | 1 |
| 经验 | |
| 最后登录 | 2017-2-4 |
| 在线时间 | 10 小时 |
月下可怜人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 10 小时
- 注册时间
- 2005-11-23
- 回帖
- 3667

|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
在如下脚本基础上更改,版权归原作者所有.
http://rpg.blue/web/htm/news457.htm
四方向修改:
def fp_passable?(x, y, d) #开始判定通行
new_x = x + (d == 6 ? 1 : d == 4 ? -1 : 0)
new_y = y + (d == 2 ? 1 : d == 8 ? -1 : 0)
return true if $game_player.passable?(nex_x, new_y)
return false
end #结束判定通行
八方向修改:
def fp_passable?(x, y, d) #开始判定通行
sx = d % 3 ; sy = (d - 1) / 3
new_x = x + ((sx == 0) ? 1 : (sx == 1) ? -1 : 0)
new_y = y + ((sy == 0) ? 1 : (sy == 2) ? -1 : 0)
return true if $game_player.passable?(nex_x, new_y)
return false
end #结束判定通行
|
|