Today I thought of an idea for new licences to add to the game but I've run into a problem.
There's a variable for the "type" of licence but it's restricted to the predefined values of police, military, intoxicants, etc. I don't see any way to make a new licence type. The debug says it's invalid if I omit the variable or input something else.
So, how do I create a new type of licence? Or, how can I create new licences without reusing a predefined type?
[Help] Creating new licences
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 419
- Joined: Wed, 11. Dec 13, 02:39
Adding a police licence for Republic of Cantera should be possible already but I want to add a completely new type of licence as well, something like a "Stock Broker" licence.
Now I'm wondering if there's a way to edit the factions.xsd. I've seen other mods include xsd files but I don't know how that works compared to just doing xml patching.
Here's the part that I think I need to change/add to:
Now I'm wondering if there's a way to edit the factions.xsd. I've seen other mods include xsd files but I don't know how that works compared to just doing xml patching.
Here's the part that I think I need to change/add to:
Code: Select all
<xs:simpleType name="licencelookup">
<xs:restriction base="xs:string">
<xs:enumeration value="hazardousmaterials" />
<xs:enumeration value="intelligence" />
<xs:enumeration value="intoxicants" />
<xs:enumeration value="military" />
<xs:enumeration value="pharmaceuticals" />
<xs:enumeration value="police" />
<xs:enumeration value="protectedspecies" />
</xs:restriction>
</xs:simpleType>
-
- Posts: 357
- Joined: Thu, 27. Jun 13, 18:33