waren in station scripten, Hilfe

Hier ist der ideale Ort um über Scripts und Mods für X³: Terran Conflict und X³: Albion Prelude zu diskutieren.

Moderators: Scripting / Modding Moderators, Moderatoren für Deutsches X-Forum

Dawn of Death
Posts: 60
Joined: Tue, 3. Aug 04, 17:23
x3

waren in station scripten, Hilfe

Post by Dawn of Death »

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
u24j7x5
Posts: 599
Joined: Thu, 1. Sep 05, 09:00
x4

Post by u24j7x5 »

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

Return to “X³: Terran Conflict / Albion Prelude - Scripts und Modding”