ESS多版本 关于如何设置NPC对主控进行跟随的问题

LuckstarZ

宝可梦训练家
成员
2023-11-16
3
0
60
27
我看WIKI上面是这样说的:
This section explains how to have the partner trainer's event follow the player as they walk around the map. More generally, it explains how to make any event follow the player - the follower mechanic is not solely for partner trainers (it just makes sense to use a dependent event for a registered partner).

While the player has any followers, the player cannot use the moves Surf, Fly, Teleport or Dig outside battle, nor use an Escape Rope. The player can talk to the follower, but the contents of that interaction must be in a Common Event rather than in a page in that dependent event. A follower will automatically stop following the player if they black out.

Making an event a follower​

When registering a partner trainer, you will typically also want to make that trainer's event a follower. To do this, use the following line of code:

Ruby:
Followers.add(@event_id, "Dave", 42)

The first argument is the ID number of the event from the current map that will follow the player (@event_id means the event that this script is used in). The second argument is a name or phrase used to identify the follower (useful when making them stop following later on). The third argument is the number of the Common Event to run when the player talks to the follower.


这个我看着意思是输入脚本Followers.add(@event_事件ID, "npc名字", 公共事件编号),这个NPC就会和主角一起移动是吗?
然后我找到事件试了一下:

Ruby:
Followers.add(@event_EV008, "pipi", 42)

运行起来既没有报错,也没有任何反应:mad:请问问题是出在哪里呢?
 
由版主最后编辑:

在线成员

现在没有会员在线。

论坛统计

主题
345
消息
1,596
会员
2,338
最新会员
人格解体

关于我们

  • 宝可梦以及其他相关名称是任天堂的商标,版权归宝可梦公司所有。宝可饭堂是一个同人游戏中文社区,不隶属于宝可梦公司。在宝可饭堂上的粉丝游戏亦未获得其授权,请支持正版游戏。
© 2022- pokefans.cn
点此延长宝可饭堂生命