Thanks Olipcs, I just switched over to HKN, and this script made it too easy.
HKN FTL Formations
Heavily inspired by the OP, here is how I adapted it for FTL formations. It is not necessary for formations to be FTL based, but I quite like it when my focused window stays in the centre of the cross / middle of the line / etc.
First bit (assumes you already have labels w1-5 set up using windows named WoW1-5):
Then for second bit, you put in your own variables, in the format:Code://----------------------------------------------------------- // FTL FORMATIONS //----------------------------------------------------------- <Template SendFormation> <If ActiveWinIs %1%> <SendLabel w1> <Key %2%> <SendLabel w2> <Key %3%> <SendLabel w3> <Key %4%> <SendLabel w4> <Key %5%> <SendLabel w5> <Key %6%> <EndTemplate> <Template Formation> <MovementHotkey %1%> <ApplyTemplate SendFormation WoW1 "%2%" "%3%" "%4%" "%5%" "%6%"> <ApplyTemplate SendFormation WoW2 "%3%" "%2%" "%4%" "%5%" "%6%"> <ApplyTemplate SendFormation WoW3 "%3%" "%4%" "%2%" "%5%" "%6%"> <ApplyTemplate SendFormation WoW4 "%3%" "%4%" "%5%" "%2%" "%6%"> <ApplyTemplate SendFormation WoW5 "%3%" "%4%" "%5%" "%6%" "%2%"> <EndTemplate>
Where Var1 = key pressed, Var2 = sent to current window, Var3-6 = sent to each of the other windows in sequential orderCode:<ApplyTemplate Formation "Var1" "Var2" "Var3" "Var4" "Var5" "Var6">
For example:
With these examples, I have the up key unbound in all 5 WoWs (I haven't worked out how to give it a variable that means send nothing), so when up is sent it means: that char don't move!Code:// <ApplyTemplate Formation "Var1" "Var2" "Var3" "Var4" "Var5" "Var6"> // Where Var1 = key pressed, Var2 = sent to current window, Var3-6 = sent to each of the other windows <ApplyTemplate Formation "Left" "Up" "W" "D" "A" "S"> // Diamond // or Pentagram part 1 <ApplyTemplate Formation "Shift Left" "Up" "S" "A" "D" "W"> // Reverse Diamond <ApplyTemplate Formation "Up" "Up" "A" "D" "A" "D"> // Line part 1 <ApplyTemplate Formation "Down" "Up" "D" "A" "A" "D"> // Line part 2 <ApplyTemplate Formation "Shift Up" "Up" "D" "A" "D" "A"> // Reverse Line part 1 <ApplyTemplate Formation "Shift Down" "Up" "A" "D" "D" "A"> // Reverse Line part 2 <ApplyTemplate Formation "Right" "W" "D" "S" "W" "A"> // Pentagram part 2 <ApplyTemplate Formation "Right" "S" "A" "W" "S" "D"> // Reverse Pentagram part 2
So with the above, press first up, then down, to get a straight line (sequentially, not together). I prefer this method to the walk/run method because I often forgot to untoggle walk at the end, and also it looks kinda cool when they rush around looking a bit random, but finish in a perfect line.
Hold left & right down together to get a pentagram.
Press left to get a diamond.
Hold shift and any of these to do the opposite (eg to adjust/backtrack).
Connect With Us