This one must be an easy, but I can't find it anywhere... I've been looking around for a while now.
/script gank = "Evyna";
This works but what if I want to assign gank
variable with the current target?
I've tried /script gank = %t
; but unfortunately. it's not working.
More specifically: I would like to create a macro that once clicked, my current target name is assigned in a variable. After that, I could use my second macro which I simply click (or spam?) and then, the character's name is taken from the variable and check if he's alive and display a message accordingly. (I can do the second macro).
In short: I need to assign my target's name in a global variable that I can use later in a second macro.
How can I do this, if it's possible?