Benutzer:SymTec ltd./CIAD: Unterschied zwischen den Versionen

Aus X-Lexikon
Zur Navigation springenZur Suche springen
KKeine Bearbeitungszusammenfassung
 
(5 dazwischenliegende Versionen von einem anderen Benutzer werden nicht angezeigt)
Zeile 1: Zeile 1:
Diese Seite ist kurzfristig von mit geöffnet worden, weil ich für mein Projekt [http://forum.egosoft.com/viewtopic.php?t=173002 CIAD] noch Übersetzungshilfe brauche. Folgendes File darf jeder, der gerade lustig ist, von der deutschen in die englische Sprache bringen:
{{HinweisBox|Dieser Artikel soll einerseits ein Beispielartikel werden, wie ein Script im X-Lexikon vorgestellt werden könnte, andererseits bietet er auch Zutritt zum [[Benutzer:SymTec_ltd./CIAD/textfile|kompletten Text der Textdateien]] (Englisch und Deutsch). Damit kann jeder, der in den CIAD-Informationen noch Verbesserungsmöglichkeiten entdeckt hat, diese hier einbringen. Ich werde in regelmäßigen Abstanden die Infos in die Download-Datei übernehmen.}}
[[Bild:STL_X3_CIAD_1.jpg|thumb]][[Bild:STL_X3_CIAD_2.jpg|thumb]]
Gerade in komplizierteren Scripts gibt es für ein Kommando etliche Beschränkungen, besondere Eingaben und bestimmte Erweiterungen, die man installieren muss, um das Kommando ideal zu nutzen. Über den Piloten würde man auch gerne noch mehr erfahren, während das Kommando läuft, der gute Scripter hat aber aus Kompatibilitätsgründen den Knopf "Statistik anzeigen" weggelassen, andere nutzen einen ganzen Kommandoslot für eine einzige Statistik.


==Info==
==Das Script==
*Die Zeichen \033Y, \033A, \033W etc. setzen eine andere Farbe. \033X beendet den Bereich der geänderten Schriftfarbe.
In jedem Schiff kann man über einen einzigen Knopf alle Informationen und Statistiken über das laufende Kommando erhalten. Wenn kein Kommando gewählt ist, erhält man eine Liste aller installierten Erweiterungen und kann sich die readme auswählen.
*\n markiert einen Zeilenumbruch
*%s steht als Platzhalter für eine Variable, die später in den Text eingefügt wird.
*Wenn man nur eine "Section" editiert, verringert das die Gefahr eines "Bearbeitungskonfliktes". Daher ist es sinnvoll, die "Bearbeiten"-Felder in den Sections zu nutzen, als den "bearbeiten"-Link am Anfang dieses Artikels.


==Scriptinfos==
{{Script|script=CIAD (Command Info And Description)|autor=[[Benutzer:SymTec ltd.{{!}}SymTec ltd.]]|spiel=X3|version=1.0|language=DE/EN|group=[[x3plus]]|forum=http://forum.egosoft.com/viewtopic.php?t=173002 Egosoft|filesize=11/76kB|download=http://x-lexikon.xibo.at/board/download.php?id=60 X-Lexikon-Forum|cmd1=1259|textid=7009}}


{{----}}
==Section1==
{{DescrBox|Übernommen (Blade0815)}}


==Section2==
{{DescrBox|Übernommen (Alex Vanderbilt)}}


==Section2.2==
{{DescrBox|Übernommen (Alex Vanderbilt)}}


==Section3==
==Eintragen der eigenen Scripts in diese Übersicht==
{{DescrBox|Übernommen (Blacky BPG)}}
Auf jedem Schiff sind bis zu 5 lokale Variablen gespeichert, die als Statistik in einen Nachrichtentext eingefügt werden. Diese Varibalen heißen ''local.stl.info.arg(1-10)'', können aber auch jeden anderen Namen haben.


==Section4==
'''Hier gepostet werden:'''
===Section4.1===
* Scriptname
* Name eines Scripts, das beim Laufen immer auf task 0 läuft
* Text für die allgemeine Kommandoübersicht
* Text für die Statistik eines einzelnen Schiffes
* "Credits" für den Autor
'''Ins Script eingefügt werden'''
* Im Script Zeilen, die die einzelnen Infos für die Statistik auf die lokalen Variablen legen


{{DescrBox|Übernommen (neomedes)}}
==Ein Beispiel==
Ich möchte einen Statistikeintrag für die Taxisoftware MK1 machenen. Ich schreibe hier:


===Section4.2===
*Script: Taxisoftware MK1 & MK2
*Hauptscript: plugin.taxi.main
*Kommandotext:
Mit der \033YTaxi-Software MK1\033X wird im M5 ein "Taxifahrer" angeheuert, der von nun an das Taxi für
Personentransporte benutzt. Er fliegt von einer Station zur nächsten und verdient Geld, indem er Passagiere
transportiert. Je weiter er im Rang steigt, desto weiter fliegt er - während das Taxi in den niederen
Rängen nur im Startsektor anzutreffen ist, wird es später im ganzen Universum zu finden sein. Die Besoldung
richtet sich nach Rang, Flugstrecke und Anzahl der durchflogenen Sektoren.
*Statistiktext:
\033YTaxisoftware MK1\n
Pilot\033X: %s\n
\033YVerdiente Credits\033X: %s\n
\033YGeflogene Kilometer\033X: %s km\n
\033YMomentanes Flugziel\033X: %s
*Credits:
\033B© STL Software Development and Modification, Argon Prime\033X


{{DescrBox|Übernommen (neomedes)}}
Daraufhin setze ich bei der nächsten Version meiner Taxisoftware folgende Variablen:
*''local.stl.info.arg1'': ''$PilotName'' (die Variable, die den Pilotennamen trägt)
*''local.stl.info.arg2'': ''$TotalCR''
*''local.stl.info.arg3'': ''$TotalKM''
*''local.stl.info.arg4'': ''$Destination''


Übersetzt von [[Benutzer:neomedes|neomedes]] - Ich habe zum Schluss noch ein paar zusätzliche Hinweise eingefügt, die auf der englischen Script-Seite (<nowiki>http://forum.egosoft.com/viewtopic.php?t=151491</nowiki>) zu finden waren --Neomedes
[[Kategorie:Script]][[Kategorie:Scripts und Modding]]
:Damit hast du die 100 Zeilen um genau 5 überschritten - ich musste die Hinweise wieder rausnehmen ;) --[[Benutzer:SymTec ltd.|SymTec]] 21:58, 5. Jul 2007 (CEST)
 
 
===Section4.3===
{{DescrBox|Übernommen (Blacky_BPG)}}
 
===Section4.4===
{{DescrBox|Übernommen (Blacky_BPG)}}
 
 
===Section4.5===
{{DescrBox|Übernommen (Blacky_BPG)}}
 
 
 
 
 
===Section4.6===
{{DescrBox|Übersetzt (Blacky_BPG)}}
<t id="682">%s\n\nExplanations:\n\n\033CStage 1 and 2:\033X\nOn the basic levels the order is a \033YSell ware for best price\033X and a \033YBuy ware for best price\033X, depending on need. Overproductions in circulations can be sold appropriately, single goods are acted over the resource store of the station \033Ylike in a trade station\033X. By the way: This order in Stage 1 also makes sense for a freighter if two freighters shall regularly sell at a factory: So one of the freighters is used only for full stores and the store always remains a little filled so that own freighters and customers can buy the product. Moreover, the freighter is protected while in station.\n\n\033CStage 3:\033X This order contributes to a \033Ymore sensible use of the trade stations and equipment docks\033X. Instead of with the quite restricted cargo bay which normal freighters would sell here the StoreHoldManager makes use of the whole cargo bay of its ship. The priorities of its aim search also can be configured. And the manager finally does not cover any docking bay in his breaks, something too more clarity and faster docking of other ships leads. In this adjusting the ship will trade to large parts with the AI therefore not approach player stations either on which docking is forbidden by NPC ships.\n\033YPriorities:\033X Depending on as the difference between the price is greatly on the own  trade station and that one of the surrounding stations will the freighter use them directly or prefer the income to the transport need:\n\033YRelevance III:\033X The price difference amounts to 3 cr, the product is needed urgently or has to be picked up urgently. In this case the freighter will immediately approach and provide the station as well as possible, sell mainly the environment therefore AI stations to sell or be able to buy quantities as fast as possible as large as possible.\n\033YRelevance II:\033X At 2 cr difference the main emphasis is on a fast passing: Only if no supplier or no buyer can be found with the corresponding price difference, the ship approaches also other stations.\n\033YRelevance I:\033X In all other cases the ship tries in an old HSN tradition to buy goods on a trade station to then sell them to the AI factories. If it does not find any fitting AI factories, it passes the wares on to the next trade station or the next equipment dock.\n\033YFurther Attitudes:\033X A \033YTrading System Extension\033X concentrates the freighter on the trade still more: Then he will always when he cannot do any suitable trade journey to a trade station act between other AI factories. Its relationship to the homebase also comes loose: On the trade flights he still docks normally once to his home trade station but with this extension the ship recognizes that this is nonsense actually and lets be it.\nWith the \033YVideo Enhancement Goggles\033X he looks ahead, whether the station which he intends to approach is not an equipment dock perhaps. In this case, he stop this flight because he knows that the player does not like it if his wares stored on the equipment dock are sold.\n\033CStage 4:\033X The following wares are got in a corresponding crowd in the jump radius: \033YTeladianium, Energy Cells, Rastar Oil, ore, Silicon Wafers, Crystals, Microchips, Cloth Rims, Quantum Tubes, Computer Components\033X - The store is filled in the first case up to 92750 units. A product is chosen this one to not the listed above counts, will act the freighter like a normal StoreHoldManager. He will either try to keep the crowd chosen by the Dock ware manager or try, if the dock ware manager was not taken out for this product, to cover about 2500 cargo bay units with the product.\n\n\033YGeneral additional feature:\033X\nWith the \033YFight Command Software MK1\033X the pilot of the ship learns that there are sectors which one avoids better. All sectors whose race is sedate in the configuration as an enemy are excluded from the trade now.\nThe pilot knows, is \033Yno Duplex and no Triplex scanner\033X installed: I need the support of the environment! Only sectors in which a \033Ysatellite or an advanced satellite\033X is found are approached.\nIf both \033YDuplex and Triplex scanner\033X installed, this enlarges the horizon of the freighter considerably. The jump radius of the station is therefore increased by 1 for this ship.\n\n\033YRecommended Extensions:\033X\n\033YTrading System Extension\nDuplex- or Triplex-Scanner\033X</t>
 
<t id="683">%s\n\nUnlike the standard trade commands this expansion can not only buy resources and sell products but also reversed. If a wrong number is entered as a percentage, a warning note sounds. In every case, however, the ship flies off in the sale with a full cargo bay. No matter whether it falls with that below the percent brand. All other things would be senseless. The freighter tries to reach a compromise between short air route and good trade price. It avoids the pirate sectors to a low extent and fixes its trace priorities depending on attitude.\nThe priorities, whether a ship prefers to fly a longer way or prefers to choose an a little more expensive supply nearby, still can be changed afterwards too.</t>
 
<t id="684">%s\n\nThe ship will connect two stations like a \033YComplex Construction Kit\033X. It will act at the wares price on the stations so that the profit or loss of the homebase is imputed. It will not consist in doubt on payment. The homebase is arbitrary. The ship is able to use a jump drive.\n\nThe ship scans respectively the stations, whether this station needs a ware which has the other station in the abundance and becomes this ware \(or also several wares\) then take one from it to the other station. Is there not only own, \033Ybut AI stations also accepted\033X. If the ship has nothing to do, it waits. Money will always get it to itself first of the account of the homebase, then of the player account. If this is not possible, it simply will unload and load on player owned stations. Also with energy cells it will provide according to itself at the target stations.</t><tt>

Aktuelle Version vom 2. Juli 2012, 03:41 Uhr

Achtungzeichen.gif Achtung: Dieser Artikel soll einerseits ein Beispielartikel werden, wie ein Script im X-Lexikon vorgestellt werden könnte, andererseits bietet er auch Zutritt zum kompletten Text der Textdateien (Englisch und Deutsch). Damit kann jeder, der in den CIAD-Informationen noch Verbesserungsmöglichkeiten entdeckt hat, diese hier einbringen. Ich werde in regelmäßigen Abstanden die Infos in die Download-Datei übernehmen.

STL X3 CIAD 1.jpg
STL X3 CIAD 2.jpg

Gerade in komplizierteren Scripts gibt es für ein Kommando etliche Beschränkungen, besondere Eingaben und bestimmte Erweiterungen, die man installieren muss, um das Kommando ideal zu nutzen. Über den Piloten würde man auch gerne noch mehr erfahren, während das Kommando läuft, der gute Scripter hat aber aus Kompatibilitätsgründen den Knopf "Statistik anzeigen" weggelassen, andere nutzen einen ganzen Kommandoslot für eine einzige Statistik.

Das Script

In jedem Schiff kann man über einen einzigen Knopf alle Informationen und Statistiken über das laufende Kommando erhalten. Wenn kein Kommando gewählt ist, erhält man eine Liste aller installierten Erweiterungen und kann sich die readme auswählen.

Scriptinfos

{{#if:x3plus||Gruppe:||x3plus {{#if:7009||TextID:||7009 (497009.xml) {{#if:1259||valign="top"|CommandIDs: ||{{#ifexpr: 1259 > 1200|COMMAND_TYPE_SHIP_{{#expr:1259 mod 1200}} (1259)|{{#ifexpr: 1259 > 1100|COMMAND_TYPE_STATION_{{#expr:1259 mod 1100}} (1259)|{{#ifexpr: 1259 > 900|COMMAND_TYPE_TURRET_{{#expr:1259 mod 900}} (1259)|{{#ifexpr: 1259 > 800|COMMAND_TYPE_GENERAL_{{#expr:1259 mod 800}} (1259)|{{#ifexpr: 1259 > 700|COMMAND_TYPE_CUSTOM_{{#expr:1259 mod 700}} (1259)|{{#ifexpr: 1259 > 600|COMMAND_TYPE_PIRACY_{{#expr:1259 mod 600}} (1259)|{{#ifexpr: 1259 > 500|COMMAND_TYPE_SPECIAL_{{#expr:1259 mod 500}} (1259)|{{#ifexpr: 1259 > 400|COMMAND_TYPE_TRADE_{{#expr:1259 mod 400}} (1259)|{{#ifexpr: 1259 > 300|COMMAND_TYPE_FIGHT_{{#expr:1259 mod 300}} (1259)|{{#ifexpr: 1259 > 200|COMMAND_TYPE_NAV_{{#expr:1259 mod 200}} (1259)|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd2}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd2}}} mod 1200}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd2}}} mod 1100}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd2}}} mod 900}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd2}}} mod 800}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd2}}} mod 700}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd2}}} mod 600}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd2}}} mod 500}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd2}}} mod 400}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd2}}} mod 300}} ({{{cmd2}}})|{{#ifexpr: {{{cmd2}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd2}}} mod 200}} ({{{cmd2}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd3}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd3}}} mod 1200}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd3}}} mod 1100}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd3}}} mod 900}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd3}}} mod 800}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd3}}} mod 700}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd3}}} mod 600}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd3}}} mod 500}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd3}}} mod 400}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd3}}} mod 300}} ({{{cmd3}}})|{{#ifexpr: {{{cmd3}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd3}}} mod 200}} ({{{cmd3}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd4}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd4}}} mod 1200}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd4}}} mod 1100}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd4}}} mod 900}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd4}}} mod 800}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd4}}} mod 700}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd4}}} mod 600}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd4}}} mod 500}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd4}}} mod 400}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd4}}} mod 300}} ({{{cmd4}}})|{{#ifexpr: {{{cmd4}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd4}}} mod 200}} ({{{cmd4}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd5}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd5}}} mod 1200}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd5}}} mod 1100}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd5}}} mod 900}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd5}}} mod 800}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd5}}} mod 700}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd5}}} mod 600}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd5}}} mod 500}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd5}}} mod 400}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd5}}} mod 300}} ({{{cmd5}}})|{{#ifexpr: {{{cmd5}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd5}}} mod 200}} ({{{cmd5}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd6}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd6}}} mod 1200}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd6}}} mod 1100}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd6}}} mod 900}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd6}}} mod 800}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd6}}} mod 700}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd6}}} mod 600}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd6}}} mod 500}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd6}}} mod 400}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd6}}} mod 300}} ({{{cmd6}}})|{{#ifexpr: {{{cmd6}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd6}}} mod 200}} ({{{cmd6}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd7}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd7}}} mod 1200}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd7}}} mod 1100}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd7}}} mod 900}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd7}}} mod 800}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd7}}} mod 700}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd7}}} mod 600}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd7}}} mod 500}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd7}}} mod 400}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd7}}} mod 300}} ({{{cmd7}}})|{{#ifexpr: {{{cmd7}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd7}}} mod 200}} ({{{cmd7}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd8}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd8}}} mod 1200}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd8}}} mod 1100}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd8}}} mod 900}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd8}}} mod 800}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd8}}} mod 700}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd8}}} mod 600}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd8}}} mod 500}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd8}}} mod 400}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd8}}} mod 300}} ({{{cmd8}}})|{{#ifexpr: {{{cmd8}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd8}}} mod 200}} ({{{cmd8}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:|
{{#ifexpr: {{{cmd9}}} > 1200|COMMAND_TYPE_SHIP_{{#expr:{{{cmd9}}} mod 1200}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 1100|COMMAND_TYPE_STATION_{{#expr:{{{cmd9}}} mod 1100}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 900|COMMAND_TYPE_TURRET_{{#expr:{{{cmd9}}} mod 900}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 800|COMMAND_TYPE_GENERAL_{{#expr:{{{cmd9}}} mod 800}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 700|COMMAND_TYPE_CUSTOM_{{#expr:{{{cmd9}}} mod 700}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 600|COMMAND_TYPE_PIRACY_{{#expr:{{{cmd9}}} mod 600}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 500|COMMAND_TYPE_SPECIAL_{{#expr:{{{cmd9}}} mod 500}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 400|COMMAND_TYPE_TRADE_{{#expr:{{{cmd9}}} mod 400}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 300|COMMAND_TYPE_FIGHT_{{#expr:{{{cmd9}}} mod 300}} ({{{cmd9}}})|{{#ifexpr: {{{cmd9}}} > 200|COMMAND_TYPE_NAV_{{#expr:{{{cmd9}}} mod 200}} ({{{cmd9}}})|nicht angegeben}}}}}}}}}}}}}}}}}}}}}} {{#if:1259||-}} {{#if:||colspan="2"|Ersetzte Scriptdateien:||{{{replaced}}} {{#if:http://forum.egosoft.com/viewtopic.php?t=173002 Egosoft||Forum:||Egosoft {{#if:http://x-lexikon.xibo.at/board/download.php?id=60 X-Lexikon-Forum||Download:||X-Lexikon-Forum {{#if:11/76kB||Anzahl Files/Größe:||11/76kB {{#if:||{{{add1}}}:||{{{add2}}}}}
Script: CIAD (Command Info And Description) {{#if:SymTec ltd.|von SymTec ltd.|}} {{#if:1.0|(V1.0)|}}
Spiel: X3|X³ - Reunion|{{#ifeq:X3|X2|X² - The Threat|nicht angegeben}}}} {{#if: DE/EN|- DE/EN|}}



Eintragen der eigenen Scripts in diese Übersicht

Auf jedem Schiff sind bis zu 5 lokale Variablen gespeichert, die als Statistik in einen Nachrichtentext eingefügt werden. Diese Varibalen heißen local.stl.info.arg(1-10), können aber auch jeden anderen Namen haben.

Hier gepostet werden:

  • Scriptname
  • Name eines Scripts, das beim Laufen immer auf task 0 läuft
  • Text für die allgemeine Kommandoübersicht
  • Text für die Statistik eines einzelnen Schiffes
  • "Credits" für den Autor

Ins Script eingefügt werden

  • Im Script Zeilen, die die einzelnen Infos für die Statistik auf die lokalen Variablen legen

Ein Beispiel

Ich möchte einen Statistikeintrag für die Taxisoftware MK1 machenen. Ich schreibe hier:

  • Script: Taxisoftware MK1 & MK2
  • Hauptscript: plugin.taxi.main
  • Kommandotext:
Mit der \033YTaxi-Software MK1\033X wird im M5 ein "Taxifahrer" angeheuert, der von nun an das Taxi für
Personentransporte benutzt. Er fliegt von einer Station zur nächsten und verdient Geld, indem er Passagiere
transportiert. Je weiter er im Rang steigt, desto weiter fliegt er - während das Taxi in den niederen
Rängen nur im Startsektor anzutreffen ist, wird es später im ganzen Universum zu finden sein. Die Besoldung
richtet sich nach Rang, Flugstrecke und Anzahl der durchflogenen Sektoren.
  • Statistiktext:
\033YTaxisoftware MK1\n
Pilot\033X: %s\n
\033YVerdiente Credits\033X: %s\n
\033YGeflogene Kilometer\033X: %s km\n
\033YMomentanes Flugziel\033X: %s
  • Credits:
\033B© STL Software Development and Modification, Argon Prime\033X

Daraufhin setze ich bei der nächsten Version meiner Taxisoftware folgende Variablen:

  • local.stl.info.arg1: $PilotName (die Variable, die den Pilotennamen trägt)
  • local.stl.info.arg2: $TotalCR
  • local.stl.info.arg3: $TotalKM
  • local.stl.info.arg4: $Destination