Fractal Softworks Forum

Starsector => Mods => Modding => Topic started by: gruberscomplete on September 17, 2017, 03:14:35 PM

Title: AssignFleet console command: factions give u kitted out ships
Post by: gruberscomplete on September 17, 2017, 03:14:35 PM
What it does: Adds ships straight to your fleet. Each ship is fully equipped and customized by the game's variant generator.

You can roughly select how many ships to add, and what class they will be. If you add "1" fp worth of ships, it will add 1 frigate/corvette. If you add "5", it might give you 5 frigates or 3 frigates and a destroyer ... etc.

In addition, each ship added will be from the list of hulls that a faction uses. If you want pirate ships, it will not give you an astral.


here is dl: DL version 2: fixed a few bugs (https://www.dropbox.com/s/agfhvg1ro7ue65x/Officership%20Program.zip?dl=0)

Requires Console Commands (http://fractalsoftworks.com/forum/index.php?topic=4106.0)!!! Also Lazylib (http://fractalsoftworks.com/forum/index.php?topic=5444.0).


Use it like: "assignfleet faction_id fp"

for example: "assignfleet luddic_path 5"
Here '5' is the size of the fleet (fp or fleet points), 'luddic_path' is the internal faction id.

To get faction ids, you can type the command "list factions"

You also need to run the commands "addcrew" and "repair all".


Backstory:
Spoiler
I hate having to buy and outfit ships, and I'd like to play as a non-OP fleet, be able to have all my fleet destroyed, and have a new fleet given to me just because I am a member of the faction.

So I built a command for that. (membership of faction not required)

Inspired by the spawnfleet console command.
[close]
Title: Re: AssignFleet console command: factions give u kitted out ships
Post by: xenoargh on September 19, 2017, 10:18:42 AM
Hmm.  Can't this be done pretty much automatically, by having a Dialog handle the death of your fleet and then teleport you to <closest friendly location> and give you this stuff?  I mean, that Dialog's code is available to do the (minor) rewrite that's required, IIRC.
Title: Re: AssignFleet console command: factions give u kitted out ships
Post by: gruberscomplete on September 19, 2017, 02:50:45 PM
Well, yes. It is possible to make it automatic with dialog options. The code is available for copying if needed, so it wouldn't be much of a hassle for someone who knew how to configure dialogs. Upon death, you receive a fleet proportional to your character's level.

In addition, this command allows a greater ability to "role play" as a derelict faction or remnants. It also reduces the time you spend configuring your ships. They are going to be blown up anyway...