Quote Originally Posted by ZorbaTHut View Post
Quote Originally Posted by TimeBomb View Post
1) Is it possible for the addon to target someone if the addon-user has not clicked on anything?
No.
Quote Originally Posted by TimeBomb View Post
2) If the addon-user clicks on an addon frame, is it possible for the addon to target someone if the addon-user is in combat and the target is in combat? 3) If the addon-user clicks on an addon frame, is it possible for the addon to target someone if the addon-user is in combat and the target is not in combat? 4) If the addon-user clicks on an addon frame, is it possible for the addon to target someone if the addon-user is not in combat and the target is in combat?
Yes.
Quote Originally Posted by TimeBomb View Post
5) Are there any other limitations to the targeting system in addons that the above four scenarios don't cover?
Yes. The way this works is that you make a secure frame, then attach a macro to it that targets what you want. However, while these macros can be used in combat, they can't be changed in combat. So, for example, let's say you were going into the last phase of a raid rift. You're about to enter combat. You want a big button labeled "TARGET RAID BOSS". Given the name of the raid boss, your addon can set one of these up before you enter combat, and you can click it whenever you want to target the raid boss. Halfway through the raid rift, a PvP gank squad shows up. They start attacking. You observe that "Lorandii" is the enemy healer (sorry Lorandii, I needed a nickname, hope you don't mind) and you want a button labeled "TARGET ENEMY HEALER". Unfortunately, since you're in combat, the addon system is unable to create one. The PvP gank squad kills you all. Now that you're out of combat, the addon system is able to create the "TARGET ENEMY HEALER" button that targets Lorandii. You all respawn and attack, but unfortunately for you, the gank squad has changed roles in the meantime and now Naifu is the new healer (needed a name, sorry naifu :V) By the time you realize this, you're already in combat. You'll have to wait until you're out of combat again to change the behavior of the button. Essentially, all the interesting decisions have to be made when you're not in combat.
Jump to post...