[Script][V1.1.00] CIAD - Extended Command Information & InGame-ReadMe

The place to discuss scripting and game modifications for X³: Reunion.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

[Script][V1.1.00] CIAD - Extended Command Information & InGame-ReadMe

Post by SymTec ltd. »

What's the problem:
Especially in more complicated Scripts, commands have many restrictions, need special inputs and certain softwares which you have to install in order to use the command in the ideal way. You would like to know more about the pilots and their statistics while the command runs, the good Scripter however left out the the button "show statistics" for compatibility reasons, others used whole command slot for only one statistics.


The solution:
On each ship, one can receive all information and statistics about the current command via only one hotkey. If no command is selected, one receives a list of all installed extensions and can select a readme.
This results in:
  • No wasted command slots
  • Less people not having found or read the readmes
  • Easy access to all readmes InGame
  • Player gets access to information about scripts he does not even have (and would enjoy having ;) )
This script adds a command option in every ship's command menu that displays a readme-message for the current main ship command. If no registered command is running, a selection page for all different readmes is displayed. For allocating the hotkey to a specific ship, the Taxisoftware (V3.0 upwards) is needed. Without that routine, only the readme can be displayed, not the statistics.

Screenshots (in German):
[ external image ] [ external image ]


Download:
[ external image ]
Install: Copy 448762.xml and 498762.xml to "t"-folder, all other files to "scripts"-folder of X3-directory.
Resources: PageID 8762





How does your script get into CIAD?
In order to bring your script to show these infos, you have to do the following:

-> up to 5 local variables are set on each ship, which can be filled into a text that describes the command and statistics.
Name: local.cmdstat.arg.(1-5)

In order to have your script entered into the CIAD-pack:
Post here:
-> Script name
-> Name of the mainscript that always runs on task 0
-> Text for the global command readme
-> Text for the statistics of each ship
Enter into the script:
-> lines in the main script that set the statistics values to local vars

Note that only scripts with a German translation both of the script and this readme can easily be taken into CIAD.

Text formatting:
Please only use these formatting commands (if you don't know how to do it, I will)
\033A - Grey,
\033B - Blue,
\033C - Cyan,
\033G - Green,
\033M - Magenta,
\033R - Red,
\033W - White,
\033Y - Yellow,
\033X - End of color formatting
\n - New line
%s - fill in variable

Example:
I want to have a statistics entry for the Taxi Software MK1&MK2.
---------------------------------

Script: Taxisoftware MK1&MK2
Mainscript: plugin.taxi.main
Command readme:

Code: Select all

With the \033YTaxi-Software\033X, a \"Taxi driver\" is hired, who uses the taxi for passenger transportation. The ship moves from one station to another and earns money by transporting passengers. The more experienced the driver, the further the taxi will go. Earned money depends on rank, fly distance and number of passed gates.
Statistics text:

Code: Select all

\033YTaxi Software MK1\033X\n
\033YPilot\033X: %s\n
\033YEarned Credits\033X: %s\n
\033YFlown distance\033X: %s km\n
\033YCurrent destination\033X: %s
---------------------------------

Then, I set the following variables in the next version of my script:
Local:
local.cmdstat.arg1: $PilotName (the variable that carries the pilot name)
local.cmdstat.arg2: $TotalCR
local.cmdstat.arg3: $TotalKM
local.cmdstat.arg4: $Destination


This script project will also carry descriptions for the normal trade commands, as well as readmes from the BonusPack, and will be published in a way so that as many players as possible can use it.

Thanks, STL

German Thread
Last edited by SymTec ltd. on Sat, 4. Oct 08, 22:24, edited 4 times in total.
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Supported Scripts:

<t id="800">Move to Station...</t>
<t id="801">Move to Sector...</t>
<t id="802">Idle</t>
<t id="803">Follow...</t>

<t id="810">Attack...</t>
<t id="811">Kill all enemies</t>
<t id="812">Protect...</t>
<t id="813">Patrol single sector..., Patrol several sectors...</t>

<t id="820">Best buy...</t>
<t id="821">Buy ware...</t>
<t id="822">Best sell...</t>
<t id="823">Sell ware...</t>
<t id="824">Start sector trader...</t>
<t id="825">Start universe trader...</t>
<t id="826">Start commercial representation...</t>
<t id="827">Start internal commodity logistics...</t>
<t id="828">Start external commodity logistics...</t>

<t id="830">Collect flying ware in Sector...</t>
<t id="831">Explorer software</t>

<t id="840">Remote Freight Transfer</t>

<t id="850">Dockware Manager</t>

<t id="870">Break up Asteroids...</t>
<t id="871">Collect Minerals in Sector...</t>
<t id="872">Economics and Supply Trader</t>

<t id="880">Taxisoftware MK1 und MK2</t>
<t id="881">Sector Security Network: Patrol</t>
<t id="882">Supply Trading Fleet</t>
<t id="883">Stock Level Manager \(untranslated\)</t>
<t id="884">Buy ware up to/Sell ware up from stock percentage...</t>
<t id="885">Connect Stations (TS)...</t>
<t id="886">Connect Stations (TL)...</t>
<t id="887">ShipFactory</t>
Last edited by SymTec ltd. on Sat, 28. Jul 07, 17:23, edited 1 time in total.
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Version 1.0 released
Updates:
* Completely translated English Textfile
* tiny readme


Translation: Thanks to: Blacky BPG, Blade0815, Alex Vanderbilt, Neomedes
User avatar
SymTec ltd.
Posts: 5285
Joined: Mon, 11. Apr 05, 21:11
x3tc

Post by SymTec ltd. »

Version 1.1.00 released
* Included new Taxisoftware-Descriptions and adjusted statistics-script to new variables
* Bound command to a hotkey -> released commandslot
* Changed pageid from 7009 to 8762 to include this into x3plus easier
* Statistics-Script now depends upon the Taxisoftware
* Readme is now included

Return to “X³: Reunion - Scripts and Modding”