I'm working on a skill that should make the user untargetable by lower-level players, but I'm struggling to find the right trigger for it.
Therefore, I suggest adding a new trigger called targeted. When a skill wants to select an entity as a target, it will have to call a cancellable event named SkillTargetingEvent. The target can only be selected if the event is not cancelled. When this event is called, it will activate the targeted trigger on the intended target, at which point the event can be cancelled or used for other purposes.
I'm also thinking about a mechanic that would allow redirecting a target from oneself to another entity, or even back to the original caster. However, that would be a separate topic.
I'm working on a skill that should make the user untargetable by lower-level players, but I'm struggling to find the right trigger for it.
Therefore, I suggest adding a new trigger called
targeted. When a skill wants to select an entity as a target, it will have to call a cancellable event namedSkillTargetingEvent. The target can only be selected if the event is not cancelled. When this event is called, it will activate thetargetedtrigger on the intended target, at which point the event can be cancelled or used for other purposes.I'm also thinking about a mechanic that would allow redirecting a target from oneself to another entity, or even back to the original caster. However, that would be a separate topic.