Here's what I've figured out. Keep adding to it for more targets.
CODE
#alias t {#if (%null(%1)) {#show Targetting @target} {#var target;#additem target %1;#if (%2) {#additem %2;#if (%3) {#additem %3} {}} {}}
I don't know any of the syntaxes for your skills, but you'd call the targets like so:
%item( @target, 1) for the first target, exchanging one for the number.