Back to Index Page generated: May 8, 2024, 6:16:03 AM

Expansion Start Choices

Content

Manifest

from Expansion Manager's OXP list from Expansion Manifest
Description This oxp gives you some start-up choices of various difficulty ranging from very easy to extremely hard. In addition the Adder is given a change to buy a 3 tn cargo expansion so it can be used for passenger transporting. This oxp gives you some start-up choices of various difficulty ranging from very easy to extremely hard. In addition the Adder is given a change to buy a 3 tn cargo expansion so it can be used for passenger transporting.
Identifier oolite.oxp.spara.start_choices oolite.oxp.spara.start_choices
Title Start Choices Start Choices
Category Mechanics Mechanics
Author Mika Spara Mika Spara
Version 1.8.2 1.8.2
Tags broke adder, miner, fast-track, beaten-up broke adder, miner, fast-track, beaten-up
Required Oolite Version
Maximum Oolite Version
Required Expansions
Optional Expansions
Conflict Expansions
Information URL http://wiki.alioth.net/index.php/Start_Choices n/a
Download URL https://wiki.alioth.net/img_auth.php/0/06/Start_choices_1.8.2.oxz n/a
License CC-BY-NC-SA 4.0 CC-BY-NC-SA 4.0
File Size n/a
Upload date 1610873215

Documentation

Also read http://wiki.alioth.net/index.php/Start%20Choices

start_choices_readme_&_license.txt

start choices OXP ver 1.8.2 (2.3.2019)

Author: spara (Mika SpÄra)

_Overview_

* When starting a new game, this oxp gives you some start-up choices of various difficulty.
* Adder is given a change to buy a 3 tn cargo expansion. This allows Adder to be used for passenger transporting.

_Requirements_

Oolite 1.80

_Installing_

Install the OXP by copying start_choices.oxp to your AddOns-folder.

_Credits_

* Compatibility fix gsagostinho Adder variants by phkb
* Adder cargo tweak and difficulty definitions are from Switeck's Shipping oxp
* Mining Trasporter option greatly adapted from Zeke Mining Transporter oxp by Captain Patrick

------

This work is licensed under the Creative Commons Attribution-Noncommercial-Share Alike 4.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-sa/4.0/

Equipment

This expansion declares no equipment.

Ships

Name
sc_anaconda
sc_transporter-player

Models

This expansion declares no models.

Scripts

Path
Config/script.js
"use strict";
this.name        = "start_choices"; 
this.author      = "spara"; 
this.copyright   = "2013 - 2014 Mika Spara";
this.licence     = "CC BY-NC-SA 3.0"; 
this.description = "Game start choices"; 
this.version     = "1.7";

this.shipLaunchedFromStation = function() {
	if (player.ship.dataKey === "sc_transporter-player" && !missionVariables.scAnaconda) {
		system.mainStation.launchShipWithRole("sc_anaconda");
		missionVariables.scAnaconda = 1;
	}
	delete this.shipLaunchedFromStation;
}
Scripts/sc_anaconda.js
"use strict";

this.name      = "sc_anaconda"; 
this.author    = "spara"; 
this.description = "A special Anaconda going to Zaonce"; 

this.shipSpawned = function ()
{
	ship.switchAI("scAnacondaAI.plist");
	ship.commsMessage("Hey miner! I'm going to Zaonce. I suggest you follow me.");
	//name escorts with randomshipnames, if present
	if (worldScripts.randomshipnames && this.ship.escorts) {
		for (var i = 0; i < this.ship.escorts.length; i++) {
			var shipName = worldScripts.randomshipnames.$randomHunterName(ship);
			this.ship.escorts[i].displayName = this.ship.escorts[i].displayName + ": " + shipName;
		}
	}
    delete this.shipSpawned;
}

this.$makeJump = function () {
	ship.exitSystem(129);
	//ship.switchAI("enteringTraderAI.plist");
	ship.switchAI("oolite-traderAI.js");
	delete this.$makeJump;
}