Boarding is a new thing. Up until TC, M6 and up were not captureable unless part of a plot. Boarding with then introduced to make M6 and up captureable, but with more effort required to do so.
So "small ships" bail out and become abandonned and claimed.
"large ships" are boarded and captured.
They are completely separate operations. "capping" means forcing a small ship to bail and then claiming it. (There are guides on how to do it better). "boarding" is using marines on a capital ship.
- This mod will add a new tipe of ship to the game, the M6A, also known as M6-Abductor (Weak M6 with capacity to dock 1 M5-M3 and a built in component called "Abductor equipment").
Under the piracy menu, this ship will have de "Abduce fighter" command, which allow to force a very damaged M5-M3 ship to dock into the M6A, and once docked, the ship will be assaulted by the marines.
If the assault succes, you gain control of the ship, if not, the "Abductor equipment" will prevent fightbacks by destroying the fighter (And doing some damage to the M6A)
Nice.
So in essence, you will appear to be a neutral ship offering docking and repair to damaged ships, and instead be a pirate sucking in the unwary. Nice thinking.
1st Step: Order a ship to dock into another ship.
- Description (Short):
Write a script to tell a M5-M3 ship to dock into a ship.
- Description (Detailed):
Write a script that (Pseudocode):
Code: Select all
if not prayership.target then
targetship = select target; //Ship selection menu.
else
targetship = prayership.target; // Player target.
end;
if targetship <= M3 then // targetship is a valid target.
targetship.stopComands();
targetship.dockAt(prayership); // We asume i'm piloting ann M7C.
else
sounds.play("Command rejected"); // targetship is a invalid target.
end;
There is no reason why you cant get a list of all ships M3 and smaller, then check for damage, and randomly issue the "offer" to a random damaged ship, just by pressing a hotkey. I'd suggest the so selected ship also have the "option" of rejecting the offer.
Problems & doubts:
Is it possible to order an ENEMY ship to dock on a ship owned by the player?
And with an ownerless ship?
Where can i find an appropiate example to follow?
Is this already done by someone else?
[/list]
Yes, you can give ships orders, but I cant tell you how. However, as said, its probably in the cheat pack somewhere.
If the ship doesnt have a pilot, you just claim it. You cant give orders to a ship without a pilot, no point. So abandonned ships are not part of your target ships.
2nd Step: Add ware and ware restriction.
Cant help with that, but look at the EMP mod, which was designed to make adding wares easy.
3th Step: Add change ownership to the script.
- Description:
At this point, we can force an enemy to dock, but not implemented the ownership change yet, i will do it here.
Future
Thats easy enough to do. You get the list of docked ships, which will only contain one ship, and then use the change of ownership command on it.
4th Step: Add the new ship.
- Description:
Till this point, i've been fliying into an M7C, time to add a true M6A to end.
Future
For now, it will be more than enougth if i can take the first point, but every help will be welcome.
Thanks!!! (And sorry for my bad english
)
Also relatively easy to do. Read my Modding 101 guide first, and then any of the other non-model guides on the same subject. If you want a unique model, thats more advanced, better to just clone an existing ship first and get it working. I'd suggest you choose an existing M6 that docks 1 M5 and then modify it the way you want.
The scripting you intend to do is reasonably straight forward. For array handling, look at the cheat pack and how it does it. You just need the order of commands.
Finding commands in the editor is the major issue for the first timer. Its a right cow to use, but after a while, you get a sense of what is where. However, Exscriptor is an external editor, and from memory, you can cut and paste in it, so can grab code out of the cheat pack and edit it in your own script.
So all you really need is X3Editor2, maybe Modmanager, and Excriptor for tools.
Adding the ship would need the latest tships, your own unique text file (See modding 101 and the modding documentation/download sticky thread) and if you change the turrets on your ship, then you need tcockpits as well. If you have to change the dock on the ship to get it to accept up to an M3, then I think you need dummies. (Dummies the file for the dock change, dummies to suck on while you learn the internal editor and deal with its frustration factor
).
In the inspired words of The Hitch Hikers Guide to the Galaxy......Go to it, good luck. (normally given when someone intends to get drunk btw, but it works for anything.)