Is there a way to make a weapon or turret available only to the player with a special flag for just the player faction? I ask because I am looking at tinkering with making an extension of the research base to allow for research into weapons only the player would have late game. Thought process is if you can research teleportation, modding all ships parts, and hacking advanced station leaks for BPs then why would the player not be able to use the most advanced research facility in existence staffed my a genius scientist to make technologically superior weapons?
I have to start somewhere so learning how to lock a weapon turret group to just the players shipyards and collection would be it. Thank you in advance for any and all replies.
Question: Making a weapon or turret mod for player faction only?
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
Drake
- Posts: 40
- Joined: Wed, 28. Nov 18, 14:16

-
DeadAirRT
- Posts: 1124
- Joined: Fri, 25. Jan 19, 03:26

Re: Question: Making a weapon or turret mod for player faction only?
If I understand you correctly, just don't give the bp to AI factions but that would only allow player to use them at player owned wharf/shipyard.
-
Max Bain
- Posts: 1463
- Joined: Wed, 27. Jun 18, 19:05

Re: Question: Making a weapon or turret mod for player faction only?
I dont think that works because you need to buy the bp from an npc.
Something that came into my mind would be to set the threshold bigger than 1. If possible the ai will never fit the weapon. But don't know if the game allows that.
-
DeadAirRT
- Posts: 1124
- Joined: Fri, 25. Jan 19, 03:26

Re: Question: Making a weapon or turret mod for player faction only?
If you set the owner to player it should be fine
You also would get the BP finishing the research (if done correctly)
-
Max Bain
- Posts: 1463
- Joined: Wed, 27. Jun 18, 19:05

Re: Question: Making a weapon or turret mod for player faction only?
Ah ok, didnt know that.
-
DeadAirRT
- Posts: 1124
- Joined: Fri, 25. Jan 19, 03:26

-
Drake
- Posts: 40
- Joined: Wed, 28. Nov 18, 14:16

Re: Question: Making a weapon or turret mod for player faction only?
Thank you for all the replies, I really appreciate it! So how would I set the BP to be player only? I see on wares.xml you can list factions but I believe that is who sells it correct? I tried meddling with that and changing it to a single line with "player" as the faction but it did not take hold so I am missing something here.DeadAirRT wrote: ↑Tue, 21. Apr 20, 19:39If you set the owner to player it should be fine
You also would get the BP finishing the research (if done correctly)
-
DeadAirRT
- Posts: 1124
- Joined: Fri, 25. Jan 19, 03:26

Re: Question: Making a weapon or turret mod for player faction only?
Setting the owner actually just makes it available to another script that builds the blueprints granted.
Just to be certain, you tried owner="player" and it gave you an error message or you didn't notice any change in a new or saved game?
I'll take a look at it in depth tomorrow and give you a clear answer.
Just to be certain, you tried owner="player" and it gave you an error message or you didn't notice any change in a new or saved game?
I'll take a look at it in depth tomorrow and give you a clear answer.
-
Drake
- Posts: 40
- Joined: Wed, 28. Nov 18, 14:16

Re: Question: Making a weapon or turret mod for player faction only?
I really appreciate it, just my first dabbling with modding and I appreciate the help from all of you.DeadAirRT wrote: ↑Wed, 22. Apr 20, 08:34 Setting the owner actually just makes it available to another script that builds the blueprints granted.
Just to be certain, you tried owner="player" and it gave you an error message or you didn't notice any change in a new or saved game?
I'll take a look at it in depth tomorrow and give you a clear answer.
-
dyosseek
- Posts: 1
- Joined: Thu, 11. Dec 25, 19:26

Re: Question: Making a weapon or turret mod for player faction only?
If I'm not mistaken, in Wares.xml tag "noblueprint" should prevent AI from using weapon. But I have absolutely no idea how this tag would affect the research
