The goal: Enemy when near npc will attack npc and npc will receive damage.
Create 2 events, one has notetag <npc> (or whatever you want), and the other one is our enemy.
NPC events can be setup similar to enemy events from previous tutorials, the different is only the notetag <npc> |
In enemy event, instead of seeking for player, we seek <npc> notetag instead.
With that, the enemy will chase <npc> events and attack them when in range. Simple isn't it? All you need to do is to change player to <npc>.