Ship OXP for player use only?
Moderators: winston, another_commander
Ship OXP for player use only?
Can someone advise me how to modify a ship OXP so that it is available only to the player(me). Thanks
- Norby
- ---- E L I T E ----
- Posts: 2577
- Joined: Mon May 20, 2013 9:53 pm
- Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
- Contact:
Re: Ship OXP for player use only?
In the proper Config/shipdata.plist find all corresponding lines with roles and set: 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.
Code: Select all
roles="player";
- Redspear
- ---- E L I T E ----
- Posts: 2687
- Joined: Thu Jun 20, 2013 10:22 pm
- Location: On the moon Thought, orbiting the planet Ignorance.
Re: Ship OXP for player use only?
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 ) then you can edit shipyard.plist and change the "chance" line for that ship to......and that should stop them appearing for sale. Combined with Norby's tweak above, your ship should then be unique within your game.
If you no longer want them to appear for sale (once you've bought one of course ) then you can edit shipyard.plist and change the "chance" line for that ship to...
Code: Select all
chance=0;
Re: Ship OXP for player use only?
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?
--
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
- Norby
- ---- E L I T E ----
- Posts: 2577
- Joined: Mon May 20, 2013 9:53 pm
- Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
- Contact:
Re: Ship OXP for player use only?
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.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?
Re: Ship OXP for player use only?
That would be PERFECT for what I need!Norby wrote: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.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?
--
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Pilot: Mossfoot - Ship ID: Viaticus Rex (Cobra MKII)
Rank: Competent - Status: Clean
http://www.noahchinnbooks.com/
Re: Ship OXP for player use only?
Thanks Norby. Worked great!!