赞 | 0 |
VIP | 0 |
好人卡 | 2 |
积分 | 1 |
经验 | 1004 |
最后登录 | 2013-2-24 |
在线时间 | 9 小时 |
Lv1.梦旅人
- 梦石
- 0
- 星屑
- 50
- 在线时间
- 9 小时
- 注册时间
- 2008-1-15
- 帖子
- 280
|
{/hx}
- #==========================================
- # 简单的刷怪 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
- #=======================================
复制代码
到站上找的,按Insert插到main 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|