<RetVar/IF> = get ammunition of laser <Var/Ware>
Übergibt die verwendete Munition des Lasers <Var/Ware>.
entweder spinnt bei mir was oder
bei mir kommt "0" wenn keine Munition und eine ~7stellige Zahl wenn es Munition gibt.
wie krieg ich aus der Zahlt den WareTypCode raus
damit ich den Amount der Mun ermitteln kann.
002 $Station = get ammunition of laser Gamma Photonenimpulskanone
hier kommt 0 raus
002 $Station = get ammunition of laser Projektilkanone
hier kommt eine ~7stellige Zahl raus
Frage zu "get munition of Laser"
Moderators: Moderatoren für Deutsches X-Forum, Scripting / Modding Moderators
- SuperVegeta
- Posts: 1611
- Joined: Tue, 20. Dec 05, 11:13
versuch einfach mal, die Zahl wie ne Ware zu behandeln und direkt bei den entsprechenden Befehlen zu verwenden.. bzw. wenn du ne Log-Ausgabe willst würde ich es mal so probieren:
$MT = get Maintype of Ware $Ware.Int
$ST = get Subtype of Ware $Ware.Int
$Ware = get Ware from Maintype $MT and Subtype $ST
$MT = get Maintype of Ware $Ware.Int
$ST = get Subtype of Ware $Ware.Int
$Ware = get Ware from Maintype $MT and Subtype $ST
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
- Blacky_BPG
- Posts: 2030
- Joined: Mon, 23. Feb 04, 23:42
Es ist nicht Zufällig diese Zahl: 1048618 ?
Wenn ja dann ist es die Projektilkanonenmunition wie sie im Codearray des Scripteditors gehändelt wird und man sollte normalerweise auch mit der Zahl die Munition scripten können, zum Beispiel per
Bei allen anderen Lasern ist klar das du 0 erhälst da sie keine Munition benötigen. Energie ist keine Munition da sie keine Ware darstellt, aber das weißt du ja.
Wenn ja dann ist es die Projektilkanonenmunition wie sie im Codearray des Scripteditors gehändelt wird und man sollte normalerweise auch mit der Zahl die Munition scripten können, zum Beispiel per
Code: Select all
001 $ship = [PLAYERSHIP]
002 $ammo = get ammunition of laser Projektilkanone
003 $ship -> add $amount units of ware $ammo
- SuperVegeta
- Posts: 1611
- Joined: Tue, 20. Dec 05, 11:13