Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.9.1a is out! (05/10/19); Blog post: Skills and Story Points (07/08/19)

Author Topic: AssignFleet console command: factions give u kitted out ships  (Read 2576 times)

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
AssignFleet console command: factions give u kitted out ships
« 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

Requires Console Commands!!! Also Lazylib.


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]
« Last Edit: October 13, 2017, 08:30:55 AM by gruberscomplete »
Logged
Click here for FREE ships!               Plentysector               Robots With Souls

xenoargh

  • Admiral
  • *****
  • Posts: 4815
  • naively breaking things!
    • View Profile
Re: AssignFleet console command: factions give u kitted out ships
« Reply #1 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.
Logged
Check out my SS projects :)

gruberscomplete

  • Captain
  • ****
  • Posts: 253
    • View Profile
Re: AssignFleet console command: factions give u kitted out ships
« Reply #2 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...
Logged
Click here for FREE ships!               Plentysector               Robots With Souls