ich bin da heut auf ein Problem gestossen. Folgendes ist passiert:
Ich habe mir ein kleines Script gebastelt das KI-Stationen erstellt und ausstattet.
Wenn ich aber innerhalb eines Sektors, mehrere Ki-Stationen des gleichen
Stationstyps (z.B. SKW) erstelle, so heißen ALLE Stationen XXXX alpha. Auch
der Boardcomputer gibt das so aus. Wie kann ich das ändern ?
Script:
Code: Select all
$x = random value from -40000 to 40000 - 1
002 $y = random value from -40000 to 40000 - 1
003 $z = random value from -40000 to 40000 - 1
004 $st = create station: type=Argonen Erzmine owner=Argonen addto=$sector x=$x y=$y z=$z
005 = $st -> install 7 units of 125 MW Schild
006 $st -> add product to factory or dock: Erz
007 $st -> add primary resource to factory: Energiezellen
008 = $st -> add 5000 units of Energiezellen
009 @ = $st -> call script 'ur.lib.addshipstostation' : station=$st shiptype=Argon Buster count=2
010 @ = $st -> call script 'ur.lib.addshipstostation' : station=$st shiptype=Argon Discoverer count=2
011 @ = $st -> call script 'ur.lib.addshipstostation' : station=$st shiptype=Argon Nova count=2
012 @ = $st -> call script 'ur.lib.addshipstostation' : station=$st shiptype=Argon Merkur count=2
013 $st -> station trade and production tasks: on=[TRUE]
014 return null