Would it be possible to make something that normally isn't controlled controlled in a specific sector?
Say, A planet where you can't bring in liquor/wines?
Or, one where you can't bring in furs, or whatever?
Commodity-legality in OXPs
Moderators: winston, another_commander
- JensAyton
- Grand Admiral Emeritus
- Posts: 6657
- Joined: Sat Apr 02, 2005 2:43 pm
- Location: Sweden
- Contact:
Re: Commodity-legality in OXPs
No, the list of illegal goods is universal. (It really ought to be set in commodities.plist, but it ain’t.)
E-mail: [email protected]
- DaddyHoggy
- Intergalactic Spam Assassin
- Posts: 8515
- Joined: Tue Dec 05, 2006 9:43 pm
- Location: Newbury, UK
- Contact:
Re: Commodity-legality in OXPs
I guess it could be scripted though. I thought about a "permits" OXP as a mission based oxp a long time ago - Communist states issuing expensive permits to bring in luxury goods or face heavy fines, a hippy "anarchy" state where drugs were encouraged but you'd need a permit of carriage (so you'd have to script the equipment that reset your legal status to clean provided you had the permit and were only carrying narcotics and you went to this particular system).
Oolite Life is now revealed hereSelezen wrote:Apparently I was having a DaddyHoggy moment.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Commodity-legality in OXPs
I assume so. Since 1.74 JS can access the contents of the players cargo. A script can check the cargo on docking in specific systems and act on it.DaddyHoggy wrote:I guess it could be scripted though.
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Commander McLane
- ---- E L I T E ----
- Posts: 9520
- Joined: Thu Dec 14, 2006 9:08 am
- Location: a Hacker Outpost in a moderately remote area
- Contact:
Re: Commodity-legality in OXPs
Yes, fines for carrying specific goods depending on a list of planets can be scripted quite easily.Squeek wrote:Would it be possible to make something that normally isn't controlled controlled in a specific sector?
Say, A planet where you can't bring in liquor/wines?
Or, one where you can't bring in furs, or whatever?
Note, however, that the game engine does not fine you for bringing illegal commodities into a system, but only for taking them out of a main station.
- Eric Walch
- Slightly Grand Rear Admiral
- Posts: 5536
- Joined: Sat Jun 16, 2007 3:48 pm
- Location: Netherlands
Re: Commodity-legality in OXPs
But we don't always need to copy the game engine. e.g. when the admiral of a military station does not want any booze be brought at his station to keep his crew alert, you could add next lines to a ship-script for that specific military station.Commander McLane wrote:Note, however, that the game engine does not fine you for bringing illegal commodities into a system, but only for taking them out of a main station.
Code: Select all
this.otherShipDocked = function (ship)
{
if (ship.isPlayer)
{
var fine = manifest["liquor/wines"] * 50;
if (fine > player.credits) fine = player.credits;
if (fine > 0)
{
player.addMessageToArrivalReport("You have been fined "+ fine + " credits for bringing in booze to this station";
player.credits -= fine;
}
}
}
UPS-Courier & DeepSpacePirates & others at the box and some older versions
- Mauiby de Fug
- ---- E L I T E ----
- Posts: 847
- Joined: Tue Sep 07, 2010 2:23 pm
Re: Commodity-legality in OXPs
In ArcElite, Furs were also banned commodities. It took me quite a while to realise that the were legal in Oolite! I toyed with the idea of making an oxp that made it illegal to sell furs at, say feline worlds, but decided that I couldn't be bothered at the time.