http://forum.egosoft.com/viewtopic.php? ... c&start=15
Ich habe versucht auch die Schleife nach zu schreiben und jetz sieht es so aus:
Was habe ich falsch gemach weil nichts passiert??
grüße DarkHorizon
Moderators: Scripting / Modding Moderators, Moderatoren für Deutsches X-Forum
Code: Select all
&x = 1000
$station = xenon HUB
while &x > 0 ...
= %station add 5000 units of Erz
dec &x
wait 3000ms
end
return null
lass´ mich raten: ... du hast den xenon-hub über die sektorkarte ausgewählt & dann das script gespeichert (evtl. gestartet) ??!DarkHorizon1905 wrote:Was habe ich falsch gemacht ...??
Code: Select all
001
002 $Warentyp = Ore
003 $Warentyp.Menge = 150000
004 $Station = find station: sector=Unknown Sector class or type=Xenon Hub race=null flags=null refobj=null maxdist=null maxnum=null refpos=null
005
006 while $Station -> exists
007 |$Maximal.Anzahl = $Station -> get max amount of ware $Warentyp that can be stored in cargo bay
008 |$Anzahl = $Station -> get amount of ware $Warentyp in cargo bay
009 |$Anzahl = $Maximal.Anzahl - $Anzahl
010 |skip if not $Station -> add $Anzahl units of $Warentyp
011 ||$Warentyp.Menge = $Warentyp.Menge - $Anzahl
012 |skip if $Warentyp.Menge > 0
013 ||break
014 @ |= wait 2000 ms
015 end
016
017 return null
... mal ´ne andere frage am rande:IngeM wrote:... wenn das auch mit dem Cycrow Cheatpaket auch machbar ist?
... ist etwa der 10. befehl in general object commands ^^DarkHorizon1905 wrote:Steck etz grad in Line 6 fest und finde den While befehl und exists befehl nicht^^ oder ich bin blind...