Page 1 of 1

Ship OXP for player use only?

Posted: Sun Jul 27, 2014 11:14 pm
by Holmes177
Can someone advise me how to modify a ship OXP so that it is available only to the player(me). Thanks

Re: Ship OXP for player use only?

Posted: Sun Jul 27, 2014 11:27 pm
by Norby
In the proper Config/shipdata.plist find all corresponding lines with roles and set:

Code: Select all

roles="player";
This will stop the core game to add NPCs but OXP scripts still can add this ship, in this case you must hunt down the script and comment out the system.addShips("yourship", ...) call.

Re: Ship OXP for player use only?

Posted: Sun Jul 27, 2014 11:57 pm
by Redspear
As Norby said but don't use Notepad to edit the files (it can mess them up).

If you no longer want them to appear for sale (once you've bought one of course :mrgreen: ) then you can edit shipyard.plist and change the "chance" line for that ship to...

Code: Select all

chance=0;
...and that should stop them appearing for sale. Combined with Norby's tweak above, your ship should then be unique within your game.

Re: Ship OXP for player use only?

Posted: Mon Jul 28, 2014 12:04 am
by mossfoot
Is there any way to set up a ship so it can only be purchased at one specific location (without any additional gear), and automatically remove its availability after that?

Re: Ship OXP for player use only?

Posted: Mon Jul 28, 2014 12:10 am
by Norby
mossfoot wrote:
Is there any way to set up a ship so it can only be purchased at one specific location (without any additional gear), and automatically remove its availability after that?
My first idea is to do not made available at all but pop up a mission screen in missionScreenOpportunity if the system.ID and station is equal with the specific location. If the player buy it then deduct the cost and use player.replaceShip.

Re: Ship OXP for player use only?

Posted: Mon Jul 28, 2014 12:15 am
by mossfoot
Norby wrote:
mossfoot wrote:
Is there any way to set up a ship so it can only be purchased at one specific location (without any additional gear), and automatically remove its availability after that?
My first idea is to do not made available at all but pop up a mission screen in missionScreenOpportunity if the system.ID and station is equal with the specific location. If the player buy it then deduct the cost and use player.replaceShip.
That would be PERFECT for what I need!

Re: Ship OXP for player use only?

Posted: Mon Jul 28, 2014 2:15 am
by Holmes177
Thanks Norby. Worked great!!