----------------------------------------------------------------------------------------
Sector-Security Script by [dPM]HeMan
inspired by Mr.Gee's Mercenary Script (included)
download:
SeS + Mercenary AddON V21, (50Kb) for info about the Merc AddOn look on page 2 or klick here
Text-bug fix + specials, (1MB) more infos klick here
----------------------------------------------------------------------------------------
Due to constant attacks by Khaak forces a new special force has been created.
Consisting of either Argon-Boron or Split-Paranid-Teladi ships the Sector-Security (SeS)
can be contacted in every "safe" sector with a Trade Dock.
A "safe" sector is every sector that is controlled by one of the 5 main races, a Trade Dock
is needed because SeS-ships will be started and/or controlled from there (call it the main base).
To contact SeS you must have a Triplex Scanner, because only with this scanner you can transmit
on SeS frequencies. SeS will only work for you if you have a police license of the contacted race though.
Because of the high risc SeS won't work for free. Default price to call SeS goes from 22500-425000 Credits and every enemy
that has been killed by SeS will cost you extra.
What do you get for your money:
- SeS will send you a total of 5 to 8 ships depending on the enemy numbers in the sector:
1.) default ships: 5 to 6 x M3-Class (Nova-Barracuda or Mamba-Falcon-Perseus) Nova and Falcon are special SeS modified versions, quiet faster than normal. Ships will be randomly and start from trade dock.
2.) advanced ships: 4 x M3 + 2 x M6 (Centaur or Nemesis). M6 will join battlefield from one of the sector's warp gates, m3 start from trade dock.
3.) maximum ships: 4 x M3 + 2 x M6 + 1x M2 + 1 x M1 (Boron Shark / Argon Titan or Split Raptor / Paranid Odysseus). M1, M2 and M6 will join battlefield from one of the sector's warp gates, m3 start from m1-carrier.
- look into your log after you orderd SeS to get all information about the arrived ships.
- these ship will stay until every enemy is killed, your money gets short or ships are dead.
- after work is done ships will jump out of the sector, now its pay-time for you.
----------------------------------------------------
Version-History:
Version 1:
- script is completed, it's time to search bugs now.
Version 1.2:
- introducing a new price system, depending on enemy strength affecting default cost and extra cost for enemys
- ships get attackted now (achieved by setting race from "neutral" to "Race1")
- script will not longer hang-up when ships got killed, new message has been added
- "scector owner" problem fixed
- ships will now use jumpdrive to get out of the sector after work

- new code allows two additional ships, making a total of 7, though they are not used yet.
- many small tweakes in code making further extensions easier to realize (e.g. Pirate Mercenarys

Version 1.3:
- further price adjusting
- enemys are now evaluated by their strength not their number, if enemy has only one ship, but this ship is a M2 he will be considered a threat now.
- introducing a new fleet composition: small = 5 to 6 M3, extended= 2 M6 + 4 M3, big= 1 M1 + 1 M2 + 2 M6 + 4 M3.
- splited the SEK.ships.init.xml into three files, one for every fleet to achive better survey.
- total lost ships are now counted, due to code every lost ship is counted as 1, no class specific counting yet.
- introduced the new debug-mode for modders, meaning that the normal user won't see the unnecessary log entrys anymore

- further small improvements in code
Version 2Beta:
- no documentation yet, look at readme for now
known problems:
- total cost prediction is in most cases much higher than real cost, this happens, when many enemys in sector are killed by gun-turrents, crashes or other ships and not counted as "killed by SeS" i think.
- some in game texts are still in german

- Merc AddOn has some known bugs
for modders:
- Script uses "COMMAND_TYPE_CUSTOM_28""COMMAND_TYPE_CUSTOM_27""COMMAND_TYPE_CUSTOM_26"
- new ware readtext-5793
- because i use the same file for my other script, there is a new ware-entry in 440244.xml using ""page id=17" "t id="5843"
- there is also a german text file in the t-folder: 490244.xml, english: 440244.xml
Installation:
- simply extract to your X2-folder, the files in the scrips-folder go in the scripts-folder

if you are using english version you only need to copy the 440244.xml of the t-folder in your t-folder.
- you can use the "SEK.test.it.xml" and "SEK.spawn.to.test.xml" in the game to give you all the things you need to test the
Script (spawn enemys, give police license and money ...)
- to call SeS go to command-menue and choose "Communication/Foreign" -> "call Sector-Security..."
Have fun !