Moin Leutz,
hab jetzt schon 2 tage damit verbracht infos zu bekommen, zwecklos.
Wie schreibe ich im SE ein Script um Waren in eine bestimmtr Station zu bekommen. In ein Schiff ist dies ja kein problem, aber wie funktioniert das mit einer station ?
Schiff: $ship =[PLAYERSHIP] add 200 units of energiezellen
funktioniert einwandfrei , nur mit den stationen eben nicht .
wäre für jede ANtwort dankbar.
Ps: Forensuche bringt keinen erfolg, wie gesagt bin schon 2 tage auf der suche
waren in station scripten, Hilfe
Moderators: Scripting / Modding Moderators, Moderatoren für Deutsches X-Forum
-
- Posts: 599
- Joined: Thu, 1. Sep 05, 09:00
hi,
man muß die station(en) erst abfragen.
folgender vorschlag:
zb: alle stationen /rasse/type:
$ware=xxxxx
$stat.array=get station array: of race: xxxx class/type: xxxx
$size=size of array: $stat.array
while $size
=dec $size
$station=$stat.array[$size]
$station -> add ware to factory or dock: $ware
=$station -> add 1 unit of $ware
end
oder nur eine bestimmte station:
$ware=xxxxx
$sec=get sector from universe x= ... y= ...
$station=find station in galaxy: startsector:$sec class/type:xxxx
race:xxxx flags:null refobj:null serial:null maxjumps:0 num:null
$station -> add product to factory or dock: $ware
=$station -> add 1 unit of $ware
gruß
ps: wenn du nur cheaten willst, wäre am einfachsten die station als ziel zu markieren und folgendes script ausführen:
$stat -> get player tracking aim
=$stat -> add xxxx unit of xxxxx
man muß die station(en) erst abfragen.
folgender vorschlag:
zb: alle stationen /rasse/type:
$ware=xxxxx
$stat.array=get station array: of race: xxxx class/type: xxxx
$size=size of array: $stat.array
while $size
=dec $size
$station=$stat.array[$size]
$station -> add ware to factory or dock: $ware
=$station -> add 1 unit of $ware
end
oder nur eine bestimmte station:
$ware=xxxxx
$sec=get sector from universe x= ... y= ...
$station=find station in galaxy: startsector:$sec class/type:xxxx
race:xxxx flags:null refobj:null serial:null maxjumps:0 num:null
$station -> add product to factory or dock: $ware
=$station -> add 1 unit of $ware
gruß
ps: wenn du nur cheaten willst, wäre am einfachsten die station als ziel zu markieren und folgendes script ausführen:
$stat -> get player tracking aim
=$stat -> add xxxx unit of xxxxx