Additional supports - Raytwo/Cobalt GitHub Wiki
Cobalt allows for new supports to be defined in a new gamedata file made specifically for this purpose.
Important
This file cannot be bundled (as it does not exist in the base game).
It will be read the same way as a patched XML file, and should be placed at patches/xml/Support.xml
in your Cobalt mod.
Here is an example of how the XML should look:
<?xml version="1.0" encoding="utf-8"?>
<Book Count="1">
<Sheet Name="Support" Count="1">
<Header>
<Param Name="Supporting Character" Ident="Condition" Type="PublicArray" Min="" Max="" Chg="" />
<Param Name="Supported Character" Ident="Pid" Type="string" Min="" Max="" Chg="" />
<Param Name="Experience Type ID" Ident="ExpType" Type="u8" Min="0" Max="255" Chg="" />
</Header>
<Data>
<Param Condition="PID_PLAYABLELUMERA_γ«γγ¨γ«" Pid="" ExpType="" />
<Param Condition="" Pid="PID_γͺγ₯γΌγ«" ExpType="0" />
<Param Condition="" Pid="PID_PLAYABLE_MORION" ExpType="0" />
<Param Condition="" Pid="PID_PLAYABLE_EVE" ExpType="1" />
<Param Condition="PID_PLAYABLE_EVE" Pid="" ExpType="" />
<Param Condition="" Pid="PID_PLAYABLE_SEFORIA" ExpType="0" />
<Param Condition="" Pid="PID_PLAYABLELUMERA_γ«γγ¨γ«" ExpType="0" />
</Data>
</Sheet>
</Book>
The Condition
field determines which character will have the supports added to their list.
The following entries consist of Pid
for which unit to support and ExpType for the experience curve (works the same as Reliance).
Note
- You still need to add the units to
Reliance.xml
for the game to consider the supports as present - Defining the support in only one direction is acceptable.
- The groups in
Support.xml
will be processed in the same order asReliance.xml
. - This means the
ExpType
for the unit defined first inReliance.xml
will prevail over the other unit if the support is defined in both directions. In the example, Lumera and Eve would useExpType 1
because Lumera is defined before Eve inReliance.xml