Libraries

download X3:Terran Conflict Chem String Functions Library (lib.chem.strings) for X3:TC by ChemODun aka Chem [EG] [ru]

Provide some functions for manipulate with string, based on their displayed width:
'split.string.by.delim'
'fill.spaces'
'sum.to.string' and 'number.to.string'
'fill.sum.to.string'and 'fill.number.to.string'
'sprintf' with extended syntax (%[align][width]specifier)

download X3:Reunion String Maths by B O F

Allows arithmetic operation - add, subtract, multiply and divide - on numeric strings. The strings can be signed, and can also be decimal.

download X3:Reunion BBS Race Reparations by eladan

BBS quest script to allow player to pay reparations to turn race stations/ships non-hostile

download X3:Reunion String Functions Library by ChemODun aka Chem [EG] [ru]

History :

2.81
-added new function 'length', it return displayed width of string.

download X3:Reunion Ware notoriety checker by xfir01

This returns the minimun notoriety need to buy a ware or the title assosiated with a given notoriety.

download X3:Reunion Ware2Relval by euclid

It returns the RelVal of any tradable ware in vanilla X3

download X3:Reunion Sorts and strings Library by B-O'F

Sorts:-

  • Bubble - alpha and numeric
  • Insertion - alpha and numeric
  • Selection - alpha and numeric
  • Shell - alpha and numeric

And the best sort in this collection:-
  • Improved Shell - alpha and numeric plus 2-linked array alpha and numeric, and a 2d-array alpha where you select the element to sort on.

download X3:Reunion String Functions Library by ChemODun

split.string.by.delim
fill.spaces

download X3:Reunion Random Waretype Generator by AalaarDB

return a random ware

download X3:Reunion Random Ship Type by AalaarDB

return a random ship type

download X3:Reunion OOS Combat Simulator by halo112358

Here's an OOS combat test framework that I wrote, it sets up OOS combat in an un-observed sector and logs the result.

download X3:Reunion Player Numeric Entry by B-O'F

Scripts, hints and tips for the following methods of getting input from the user once a script is running:-

  • Incoming question in the form of a numeric keypad - slight update on the original.

  • Using the numeric keypad (hotkey) from a script - plus other uses.

  • Using a combination of numeric keypad and incoming question.

  • "Chaining" scripts to change the function of the command slot - not just for numeric entry, but any entry.

download X3:Reunion Set Sector Known by nuclear_eclipse

If you want to set a sector as known to the player, including all stations and gates, this script is for you.

download X3:Reunion Add/Set Notoriety by nuclear_eclipse

Now there's an easy way to add or set an exact amount of notoriety, no matter what condition the notoriety is currently at. These scripts will add or set as exact of a notoriety boost as possible with the scripting engine.

download X3:Reunion Absolute Value by nuclear_eclipse

This is a basic absolute value script. It returns an always-positive value with the same magnitude as the argument.

download X3:Reunion mEngine by PrizzZ

This lib is used to emule a menu thanks to the "send incoming question" command.

download X3:Reunion Manage forbidden areas by Naffarin

Common library for scripters to manage forbidden sectors and stations on player request

download X3:Reunion Get ship race by Zurechial

returns the race that developed a ship type.

download X3:Reunion Forum Name Library by LV

A file containing names of forum users to be used to generate random names

download X3:Reunion Get Sector Info by DangerDave

hese library scripts take any X3 2.0 sector as a parameter and return an array, organised as following:

[0] = Race (useful for plugins that modify the owner race of a sector and want to know the original owner race).
[1] = Population.
[2] = Number of planets.
[3] = Is a core sector: TRUE if core, FALSE if border.
[4] = Is a home sector: TRUE if part of the sector cluster surrounding the home sector of a race, FALSE otherwise.

download X3:Reunion greatest common divisor lib by euclid

It returns the greatest common divisor of two integer

download X3:Reunion Floating point math lib by euclid

  1. sqrt.xml - square root for numbers and fpn arrays with high precision (9 digits).
  2. arcsin.xml - inverse sine
  3. arccos.xml - inverse cosine

download X3:Reunion Destroy Station Debris by AalaarDB

there is no 'find debris' command or anything that will easily return it. So, I wrote this code that checks for wares of mainType 30. Each subtype corresponds to a station - so there is a wreck for each station type. The mainType 20s are station debris found in Presidents End. They are slightly different.

download X3:Reunion Custom Factory Setup Library by Armegeddon

These 3 scripts will allow non-standard factories to actually work correctly.
Utilization of the scripts requires no actions on the part of the end user, but does require some from
the creator of any mods/scripts that utilize factories other than the default ones that are included in
the game.

download X3:Reunion Create asteroid field by nuclear_eclipse

This library script, meant for use with 1.3's big and mini roids, will calculate and place a randomized asteroid field