Target Name help
Lets say I'm making an addon to alert my warrior when to OVERPOWER, triggered by the target dodging in the combat log.
when the dodge occurs, this is fired DEFAULT_CHAT_FRAME:AddMessage("Target Dodged: OVERPOWER now!"); How do I turn the word "target" into the actual name of my target? I want it to tell me... "Arcatraz Sentinel Dodges: OVERPOWER Now! I've tried some things but to no success...can someone lease help out here? |
Try something like this:
DEFAULT_CHAT_FRAME:AddMessage(TargetUnit("target").. "Dodged: OVERPOWER In order to stick several strings together you have to do the following: string1.. ..string2.. ..string3.. ..string4 in other words string1DOTDOT space DOTDOTstring2DOTDOT space DOTDOTstring3DOTDOT space DOTDOTstring4 |
All times are GMT -6. The time now is 09:24 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI