赞 | 0 |
VIP | 0 |
好人卡 | 0 |
积分 | 0 |
经验 | 0 |
最后登录 | 2008-9-21 |
在线时间 | 0 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 135
- 在线时间
- 0 小时
- 注册时间
- 2008-9-21
- 帖子
- 4
|
脚本啊……6r就有啊……
#==========================================
# 简单的刷怪 By 绿发的Eclair
# 事件脚本中使用 respawn 可以让这个事件位置回到原来的地方^^
# 不只是用来刷怪哦,不过NPC Ms用处不大的样子。
# 刷怪事件的制作方法看那只幽灵就好了。
# 冲突性非常低。
#==========================================
class Game_Event < Game_Character
attr_accessor :ori_x
attr_accessor :ori_y
alias initialize_respawn :initialize
def initialize(map_id, event)
initialize_respawn(map_id, event)
@ori_x = @event.x
@ori_y = @event.y
end
end
class Game_map
attr_accessor :events
end
def respawn
$game_map.events[@event_id].moveto($game_map.events
[@event_id].ori_x,$game_map.events[@event_id].ori_y)
end
#=======================================
#本脚本来自66RPG By绿发的Eclair
#======================================= 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|