Need help to make Terran ship components exclusive

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

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

Post Reply
Sam97531
Posts: 257
Joined: Fri, 19. Nov 10, 06:23
x4

Need help to make Terran ship components exclusive

Post by Sam97531 » Sat, 8. Jan 22, 00:03

Hi all

Trying my hand at modding here. Been having some good luck learning the ropes.

One of the things I wanted to do was to make Terran weapons engines in shields exclusive to Terrans (and vice versa so they can only use Terran gear). This is a bit of a throw back to x3.

Now, it was easy to do so for the Terran pulse lasers because the ships have the “high powered” tag - and you can label the weapons as high powered.

What would be the best way to do this for Turrets, engines and shields? As per vanilla I don’t see a way to have a sort of check to see if a tag is there on those components

BlackRain
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 7410
Joined: Mon, 15. Dec 03, 18:53
x4

Re: Need help to make Terran ship components exclusive

Post by BlackRain » Sat, 8. Jan 22, 02:18

Sam97531 wrote:
Sat, 8. Jan 22, 00:03
Hi all

Trying my hand at modding here. Been having some good luck learning the ropes.

One of the things I wanted to do was to make Terran weapons engines in shields exclusive to Terrans (and vice versa so they can only use Terran gear). This is a bit of a throw back to x3.

Now, it was easy to do so for the Terran pulse lasers because the ships have the “high powered” tag - and you can label the weapons as high powered.

What would be the best way to do this for Turrets, engines and shields? As per vanilla I don’t see a way to have a sort of check to see if a tag is there on those components
I think you should just be able to create a new unique tag and have only terrans able to use that particular tag

Sam97531
Posts: 257
Joined: Fri, 19. Nov 10, 06:23
x4

Re: Need help to make Terran ship components exclusive

Post by Sam97531 » Sat, 8. Jan 22, 03:29

Great!

Where would I find a code snipet or a sample of this? Much appreciated :)

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

Re: Need help to make Terran ship components exclusive

Post by DeadAirRT » Sat, 8. Jan 22, 06:12

Sam97531 wrote:
Sat, 8. Jan 22, 03:29
Great!

Where would I find a code snipet or a sample of this? Much appreciated :)
You can check vro for his viper or bomber. Or maybe the big one shot laser from vanilla.

Post Reply

Return to “X4: Foundations - Scripts and Modding”