Guten Morgen,
als erstes hätte ich mal eine Frage zu den Völker Stationen, warum ist bei denen meistens die benötigte Ware (Primär bzw. Sekunder) gegenüber kaufbare Stationen vertauscht? Ich wollte Stationen kaufen und dann dem jeweiligen Volk diese "übergeben", geht aber nicht, da die anders die Rohstoffe benötigen. Gibt es eine Möglichkeit per Script eine Völkerstation XYZ auszuwählen und Quasi in einem anderen Sektor diese zu kopieren?
Völkerstationen scripten
Moderators: Scripting / Modding Moderators, Moderatoren für Deutsches X-Forum
-
- Moderator (Script&Mod)
- Posts: 14571
- Joined: Sun, 20. Nov 05, 22:45
die Fabriken funktionieren auch ohne dass du die Ressourcen änderst, aber wenn es dir so wichtig ist hier der ungefähre Code:
Argument 1: Station ; Var/Station
Argument 2: Position ; Var/Sector+Position
$X = $Position [ 0 ]
$Y = $Position [ 1 ]
$Z = $Position [ 2 ]
$Sector = $Position [ 3 ]
$Station.type = $Station -> get ware type Code of Object
$Station.new = create Station: type=$Station.type sector=$sector x=$X y=$Y z=$Z
$Ware.arr = $Station -> get Ware Array from Station
$Ware.size = size of Array $Ware.arr
while $Ware.size
| dec $Ware.size
| $Ware = $Ware.arr [ $Ware.size ]
| if $Station -> uses Ware $Ware as Product
| | $Station.new -> add product $Ware to Factory or Dock
| else if $Station -> uses Ware $Ware as Primary Ressource
| | $Station.nwe -> add primary Ressource $Ware to Factory
| else if $Station -> uses Ware $Ware as Secondary Ressource
| | $Staation.new -> add secondary Ressource $Ware to Factory
| end
end
$Station.new -> Factory Production Tasks on=[TRUE]
Argument 1: Station ; Var/Station
Argument 2: Position ; Var/Sector+Position
$X = $Position [ 0 ]
$Y = $Position [ 1 ]
$Z = $Position [ 2 ]
$Sector = $Position [ 3 ]
$Station.type = $Station -> get ware type Code of Object
$Station.new = create Station: type=$Station.type sector=$sector x=$X y=$Y z=$Z
$Ware.arr = $Station -> get Ware Array from Station
$Ware.size = size of Array $Ware.arr
while $Ware.size
| dec $Ware.size
| $Ware = $Ware.arr [ $Ware.size ]
| if $Station -> uses Ware $Ware as Product
| | $Station.new -> add product $Ware to Factory or Dock
| else if $Station -> uses Ware $Ware as Primary Ressource
| | $Station.nwe -> add primary Ressource $Ware to Factory
| else if $Station -> uses Ware $Ware as Secondary Ressource
| | $Staation.new -> add secondary Ressource $Ware to Factory
| end
end
$Station.new -> Factory Production Tasks on=[TRUE]
if not stated otherwise everything i post is licensed under WTFPL
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter
I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help
Ich mache keine S&M-Auftragsarbeiten, aber wenn es fragen gibt wie man etwas umsetzen kann helfe ich gerne weiter

I wont do Script&Mod Request work, but if there are questions how to do something i will GLaDly help

-
- Posts: 199
- Joined: Wed, 13. Sep 06, 14:40