[Question] Tags

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

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

Post Reply
Naalei
Posts: 51
Joined: Sat, 30. Nov 13, 14:35
x4

[Question] Tags

Post by Naalei » Sun, 9. Dec 18, 22:00

Hello,

I'm trying to dupplicate a weapon which I want to be available for only one ship.
I managed to dupplicate it for all ships of a category (S, M, L, XL) but now, I want to have it only for one ship of a category.

I saw this in the file ship_arg_s_scout_01.xml :

Code: Select all

<connection name="con_primaryweapon_02" tags="weapon small platformcollision standard missile symmetry symmetry_right">
  <offset>
    <position x="6.840829" y="0.8439339" z="-3.105679"/>
  </offset>
</connection>
and in the file weapon_gen_s_laser_01_mk3.xml (this is the file for my new weapon, but it is the same as weapon_gen_s_laser_01_mk2.xml)

Code: Select all

<connection name="WeaponCon_01" tags="component weapon small standard ">
<offset/>
</connection>
It seems that the attribute "tags" must match in order to be usable by a ship (well, at least, all element in the weapon file should be in the ship file except for "component") (supposition only)
I tried adding a new tag to the list but it does not seem to take it into account and my weapon simply disappear for all ships.

My questions are simple :
- Is it possible to have a weapon only for one ship ?
- Is it possible to create new tags ?
- Am I missing a file somewhere else that will magically filters weapons for ships ?

My goal is to create different weapons for S ship (so a dicoverer will not have the same damage output as an heavy fighter)

Bye :)

Post Reply

Return to “X4: Foundations - Scripts and Modding”