Follower, FOLLOW my lead please

Game mode: [Online]
Problem: [Bug]
Region: [EU]


Follower attacks a random nearby target instead of the target the player attacks.
If there are no other NPCs the followers attacks the same target.

There are quite few situations where this is the case though.
This is particularly true when capturing thralls in cities.

The follower is obviously capable of choosing a target, so I don’t see why it should be so hard to pick the same target as the player.

OnPlayerAttack()
    Follower.Target = Player.Target

OnTargetDeath()
    Follower.Target = RNGesus()

Ideally though I would want something like this:

OnPlayerAttack()
    Follower.Target = Player.Target

OnTargetDeath()
    If Player.OutOfCombat
        Follower.Target = null
    else
        Follower.Target = Player.LastAttackedBy ?? Player.Target

Steps on how to reproduce issue:

  1. Have a thrall follow you.
  2. Make sure you have more multiple NPCs in the vicinity.
  3. Attack an NPC.
1 Like

Hello @Kruttmusa, thank you for your input!

Without delving too much into detail, there are many intricacies when it comes to tweaking any sort of system in a project with the scope of CE. Please rest assured that thralls and pets are being looked into by the developers in order to address as many of the reported issues as possible.

This should be a trivial logical change though.
If the devs adhere to any coding standards there should be no “intricacies” in such a change.

I’m a developer since the 90s, worked on all sorts of projects, and done a whole lot of modding on different games that involved altering AI behavior and core game mechanics.
Successfully.

https://www.gamedev.net/articles/programming/artificial-intelligence/the-total-beginners-guide-to-game-ai-r4942/ is an excellent read on this matter.

Speaking as a programmer myself, it’s always easier to “fix” someone else’s problem that I can’t see than the one that is in my backlog. Very often the intricacies aren’t apparent until the issue is there in code in front of you.

Interesting article though.

I agree, that’s why I added the part following standards/best practices.
So I am not saying this particular issue is easily resolved, but in an environment where architecture is sound it would be a trivial change.
Edited my reply for clarity.

1 Like

Absolutely true. Particularly if debugging someone else’s code, heh.

It is, AI is a deep subject indeed and no one article can adequately cover it, but it’s a decent primer for the uninitiated.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.