Magic Fleet Builder
Creates a fleet with a defined flagship and optional escort.
Not all fields are required. Each `set` method has a comment showing the default value for if it is not used.
Example usage:
MagicCampaign.createFleetBuilder()
.setFleetName("Hegemony Attack Fleet")
.setFleetFaction(Factions.HEGEMONY)
.setFleetType(FleetTypes.TASK_FORCE)
.setFlagshipName("HSS Onslaught")
.setFlagshipVariant("onslaught_xiv_Elite")
.setFlagshipAlwaysRecoverable(false)
.setFlagshipAutofit(true)
.setCaptain(theCaptain)
.setSupportAutofit(true)
.setReinforcementFaction(Factions.HEGEMONY)
.create()
Content copied to clipboard
Author
Wisp
Constructors
Functions
Link copied to clipboard
com.fs.starfarer.api.campaign.FleetAssignment.
Link copied to clipboard
Where the fleet will go to execute its order.
Link copied to clipboard
Can be null for a random captain, otherwise use MagicCampaign.
Link copied to clipboard
Default: false.
Link copied to clipboard
Whether the flagship will be autofitted.
Link copied to clipboard
Default: automatically picked by the game.
Link copied to clipboard
Default: picks the first ship in the fleet after it has been sorted.
Link copied to clipboard
Default: MagicVariables.BOUNTY_FACTION ("ML_bounty").
Link copied to clipboard
Default: "Fleet".
Link copied to clipboard
campaign.ids.FleetTypes, defaults to FleetTypes.
Link copied to clipboard
Default: false.
Link copied to clipboard
Minimal fleet size, can be used to adjust to the player's power.
Link copied to clipboard
Ship quality override.
Link copied to clipboard
Reinforcement faction, if the fleet faction is a "neutral" faction without ships Default: fleetFaction.
Link copied to clipboard
Where the fleet will spawn.
Link copied to clipboard
Whether the preset ships will be autofitted.
Link copied to clipboard
MapOptional escort ship variants and how many of each to create.
Link copied to clipboard
Default: false.
Link copied to clipboard
If not null, the script will try to find missing variant files there.