I'm trying to put together a key bind to target myself, use a healing power, and then re-target my original target.
/bind "target_self $$ PowerTrayExec 13 $$ what goes here?"
I found the following entry in the wiki's console command listing:
Target_Manual_Modal -- Find the previous targetable entity and target it
In use, the function requires 2 ints as parameters. I tried 1 1, but it targets an arbitrary creature, not the one I had previously targeted. Does anyone have any experience with this function or can suggest another way of doing it?
Your /bind command line will have to be preceded with a "dummy" command that will fool the scripting engine to treat your whole command line as a "maintain" command. Otherwise your heal will just keep firing until you interrupt it. Try...
I am not sure if letting go of the button will switch back to your previous target but I do know that the line before it will work flawlessly to target yourself and heal.
I was messing around with Target_Manual_Modal and I could not get it to function properly with the variables I was entering. Maybe someone else may have cracked this nut.
I was trying to toy with this idea the other day as well, when we found the use of the dummy toggle command
After toying with it, it seems Target_Manual_Modal just is a more complicated version of Target_Enemy_Prev or _Next etc etc. Where you can give it some specifications that seems to affect which order it cycles through things.
I haven't found anything that reliably goes back to the actual previous target as of yet. Even if it was an enemy and you do Target_Enemy_Prev it's not your previous target, that's just a command to cycle through available targets.
Comments
Your /bind command line will have to be preceded with a "dummy" command that will fool the scripting engine to treat your whole command line as a "maintain" command. Otherwise your heal will just keep firing until you interrupt it. Try...
<key> "+down$$target_self$$+powertrayexec <slot>$$target_prev"
I am not sure if letting go of the button will switch back to your previous target but I do know that the line before it will work flawlessly to target yourself and heal.
I was messing around with Target_Manual_Modal and I could not get it to function properly with the variables I was entering. Maybe someone else may have cracked this nut.
After toying with it, it seems Target_Manual_Modal just is a more complicated version of Target_Enemy_Prev or _Next etc etc. Where you can give it some specifications that seems to affect which order it cycles through things.
I haven't found anything that reliably goes back to the actual previous target as of yet. Even if it was an enemy and you do Target_Enemy_Prev it's not your previous target, that's just a command to cycle through available targets.