Quote Originally Posted by 'Shadrach',index.php?page=Thread&postID=37194#post 37194
What I'm trying to do is change the function of a macro based on who has focus at the time.

For instance: With Focus set to H1 (H1 == Hunter1), when I push the '3' key, H1 casts Hunter's Mark, while the others (H2&H3) to set '/target focustarget'

However, if I change the Focus (either when someone dies, or I decide H2 needs to be the leader, after the focus change, H2 would cast the Hunter's Mark, while H1 & H3 would '/target focustarget'

Basically that when a hunter detected that he was the focus, he would cast hunter's mark while everyone else assisted off of him.

More Pseudo-Code like:
/cast [<if player is the focus>] Hunter's Mark; <if player is not the focus> target focustarget
I wonder if it is possible to do this

/cast [harm] Hunter's Mark --obviously your main targets enemy
/target [noharm][noexists][dead] focustarget --if any of thos are true, it should target your focus target, and if it is not going to work try: /assist [noharm][noexists][dead] focustarget

beyond that I don't know, but best of luck :D