I'm playing around with DogTags in the mod CowTip, and the possibilities are vastly endless it seems. But I've hit a snag trying to get this certain function to work properly, and I was wondering if anyone with some extensive experience could help me out with it.
I'm trying to make a 'target-of-target' function to display on a mouseover of a target. Here are some conditions I would like it to have:
- Show Nothing: when it is an NPC which is not in combat (because they can never have a target of importance anyway). This is for NPC's only, because it is still useful to see if a player is looking at you, whether in combat or not.
- Show Targetting: <<You>>: when it is a player or NPC targetting me.
- Show Targetting: <target>: when it is anyone targetting anyone.
Now, I was initially just altering and screwing around with the Target function that is already set up in CowTip, but it's missing a bit of functionality that I want (specifically NOT showing 'none' or 'Target: none' when there's no target).
Here's what I have right now, but the issue is the first condition, where it's showing 'Targetting: No one' on all npcs, which is a waste of tooltip space for no useful information:
Targetting: [(if Target:IsPlayer or (Target:IsEnemy and not Target:IsPet) then
end) (if IsUnit('player', Target) then
Target:NameRealm or 'No one'
If this could be tagged to only need one line, it would be perfect =) thanks for any helps guys!
EDIT: Here's some pictures of the current setup, just to show you how it looks on the tooltip: