Libraries
download
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)
'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
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
BBS Race Reparations by eladan
BBS quest script to allow player to pay reparations to turn race stations/ships non-hostile
»
download
String Functions Library by ChemODun aka Chem [EG] [ru]
History :
2.81
-added new function 'length', it return displayed width of string.
2.81
-added new function 'length', it return displayed width of string.
»
download
Ware notoriety checker by xfir01
download
Ware2Relval by euclid
download
Sorts and strings Library by B-O'F
Sorts:-
And the best sort in this collection:-
- 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
String Functions Library by ChemODun
download
Random Waretype Generator by AalaarDB
download
Random Ship Type by AalaarDB
download
OOS Combat Simulator by halo112358
download
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
Set Sector Known by nuclear_eclipse
download
Add/Set Notoriety by nuclear_eclipse
download
Absolute Value by nuclear_eclipse
download
mEngine by PrizzZ
download
Manage forbidden areas by Naffarin
download
Get ship race by Zurechial
download
Forum Name Library by LV
download
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.
[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
greatest common divisor lib by euclid
download
Floating point math lib by euclid
download
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
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.
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.