[Question] How can I make a ship only useable by other races

The place to discuss scripting and game modifications for X4: Foundations.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

Post Reply
Max Bain
Posts: 1459
Joined: Wed, 27. Jun 18, 19:05
x3ap

[Question] How can I make a ship only useable by other races

Post by Max Bain » Mon, 9. Mar 20, 11:36

Is it possible to have ships (or other wares) that the NPC races will build, but the player cant buy the blueprints or even the ship at the ship yard? He shall not see that these exists in the buy menu but the Argons should be able to build and use them. Is that even possible?

Thank you :)
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

j.harshaw
EGOSOFT
EGOSOFT
Posts: 1867
Joined: Mon, 23. Nov 15, 18:02

Re: [Question] How can I make a ship only useable by other races

Post by j.harshaw » Thu, 26. Mar 20, 18:51

Max Bain wrote:
Mon, 9. Mar 20, 11:36
Is it possible to have ships (or other wares) that the NPC races will build
Add the ship macro to an appropriate entry in shipgroups.xml
Max Bain wrote:
Mon, 9. Mar 20, 11:36
but the player cant buy the blueprints
Add the tag noplayerblueprint to the ship ware.
Max Bain wrote:
Mon, 9. Mar 20, 11:36
or even the ship at the ship yard?
You could have the ware require a license that the player cannot acquire. Player will still see the ship in the ship config menu when buying ships, though, but won't be able to select it for purchase.

DeadAirRT
Posts: 1021
Joined: Fri, 25. Jan 19, 03:26
x4

Re: [Question] How can I make a ship only useable by other races

Post by DeadAirRT » Mon, 30. Mar 20, 08:02

Do we have the ability to make custom licenses? I thought it kicks out an error if we don't follow the established types of licenses.

I haven't personally tried but i know shuulo attempted it for vro to make the Titan only available to npc.

Max Bain
Posts: 1459
Joined: Wed, 27. Jun 18, 19:05
x3ap

Re: [Question] How can I make a ship only useable by other races

Post by Max Bain » Mon, 30. Mar 20, 08:40

DeadAirRT wrote:
Mon, 30. Mar 20, 08:02
Do we have the ability to make custom licenses? I thought it kicks out an error if we don't follow the established types of licenses.

I haven't personally tried but i know shuulo attempted it for vro to make the Titan only available to npc.
I tried it as well, but I wasnt able to do so. But I had no tutorial or so, so I might did it wrong. Maybe someone can explain how it works?
XR Ship Pack (adds several ships from XR) Link
Weapon Pack (adds several new weapons) Link
Economy Overhaul (expands the X4 economy with many new buildings) Link
X4 Editor (view stats of objects and make your own mod within a few clicks) Link

Post Reply

Return to “X4: Foundations - Scripts and Modding”