
Pretty simple script that gives all the khaak ships in the galaxy the order to come to you.. and well..

They fly the normal way.. so by gates.. wich is... interesting... but slow ..kinda..
You can easaly rewrite it to remove all khaak from the map or make another race invade your current sector = good learning material.
If anyone wants to host the .xml just call.
Enjoy.
Script khaak.invasion
Version: 0
for Script Engine Version: 22
Description:
Orders all khaak ships in galaxy to attack the sector the player is currently in
Arguments:
Null
Source Text:
001 *$writer = 'Mostlikey'
002 $race = Khaak
003 $total = 0
004 $sect = 0
005 $mx = get max sectors in x direction
006 $my = get max sectors in y direction
007 $ps = get player ship
008 $playersector = $ps -> get sector
009 $x = 0
010 while $x < $mx
011 $y = 0
012 while $y < $my
013 $sect = $sect + 1
014 $sector = get sector from universe index: x=$x, y=$y
015 $list = find ship: sector=$sector class or type=null race=$race flags=[Find.Multiple] refobj=null maxdist=9999999 maxnum=999999999 refpos=null
016 $i = size of array $list
017 $total = $i + $total
018 $j = 0
019 while $j < $i
020 $ship = $list[$j]
021 START $ship -> command COMMAND_INVASION : arg1=$playersector, arg2=null, arg3=null, arg4=null
022 $j = $j + 1
023 end
024 $y = $y + 1
025 end
026 $x = $x + 1
027 end
028 $output = $total + ' ' + $race + ' ships ordered to attack sector ' + $playersector
029 write to player logbook $output
030 return null