137 reputation
111
bio website
location
age
visits member for 3 years, 6 months
seen Jan 10 at 17:33

Aug
30
awarded  Popular Question
Dec
11
awarded  Popular Question
Nov
28
awarded  Notable Question
May
21
awarded  Popular Question
Mar
16
awarded  Nice Question
Feb
12
awarded  Critic
Feb
5
revised How do I store target name in a variable in a macro?
added 121 characters in body
Feb
5
comment How do I store target name in a variable in a macro?
I edited my question. Apparently you forgot to read below: Edit 2011-02-04. I renamed the heal variable into gank so it wont confuse anymore. It's not about healing, the main question: How to store target name in a variable in a macro.
Feb
5
revised How do I store target name in a variable in a macro?
I changed my variable names from HEAL to GANK because some peoples were confused about the variable name. The purpose wasn't specifically about healing. See the edit at bottom for the real tasks.
Feb
4
awarded  Promoter
Feb
4
revised How do I store target name in a variable in a macro?
Edited question
Feb
2
comment How do I store target name in a variable in a macro?
@Stuart, thank you for that reply. I will give it a try tonight. I've tested so many things yesturday that I can't confirm if I've already tried that.
Feb
2
comment How do I store target name in a variable in a macro?
Hmm sadly it's not working. I've tried Macro1: /script _G["gank"] = UnitName("target"); and Macro2: /script local gank = _G["gank"]; /run if UnitIsPlayer(gank) then UIErrorsFrame:AddMessage("Player " .. gank .. " is ALIVE!", 1.0, 0.5, 0.0, 3) end;
Feb
1
comment How do I store target name in a variable in a macro?
@Stuart, allright I can't wait to test it!
Feb
1
comment How do I store target name in a variable in a macro?
Does the target parameter to UnitName is your current target or I'll have to edit that macro and replace "target" by the name ?
Feb
1
comment How do I store target name in a variable in a macro?
You perfectly understood the question. Though, I haven't tested the code yet. I will as soon as I get back home. Thank you for your answer!
Jan
19
comment How do I store target name in a variable in a macro?
Also, if the target is a player and actually dead and walking back (spirit released), the corpse isn't clickable.
Jan
19
comment How do I store target name in a variable in a macro?
Hi, indeed I want it to be dynamic. With macro1 you store your current target in a variable. And with macro2 you check if that player "exists".
Jan
16
awarded  Commentator
Jan
16
comment How do I store target name in a variable in a macro?
@Anna, in fact the purpose of that macro isn't meant to heal anyone. I assign a variable name when I gank someone. The second macro simply check if that charater is alive and if so, display me a message.