FOModの作り方(チュートリアル03)
<group>のtype属性で指定できる選択の種類について調べてみます。
Modファイル FOModTutor03.zip の構成
FOModTutor03\ FOMod\ info.xml ModuleConfig.xml
- 今回はFOModインストーラの画面上の動作のみチェックするので、FOModフォルダ以外は不要です。
info.xmlの作成
<?xml version="1.0" encoding="UTF-16"?> <fomod> <Name>FOMod Tutorial 03</Name> <Author>ThinkingSkeever</Author> <Version>0.0</Version> <Website>http://thinkingskeever.hatenablog.com/</Website> <Description> <p>This is FOMod Tutorial.</p> </Description> </fomod>
ModuleConfig.xmlの作成
<?xml version="1.0" encoding="UTF-16"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://qconsulting.ca/fo3/ModConfig5.0.xsd"> <moduleName>FOMod Tutorial 03</moduleName> <installSteps order="Explicit"> <installStep name=""> <optionalFileGroups order="Explicit"> <group name="どれか1つを選択" type="SelectExactlyOne"> <plugins order="Explicit"> <plugin name="Item 1"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 2"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 3"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> </plugins> </group> <group name="1つ以上を選択" type="SelectAtLeastOne"> <plugins order="Explicit"> <plugin name="Item 1"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 2"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 3"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> </plugins> </group> <group name="選択しないか、どれか1つを選択" type="SelectAtMostOne"> <plugins order="Explicit"> <plugin name="Item 1"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 2"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 3"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> </plugins> </group> <group name="すべて選択" type="SelectAll"> <plugins order="Explicit"> <plugin name="Item 1"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 2"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 3"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> </plugins> </group> <group name="0個以上を選択" type="SelectAny"> <plugins order="Explicit"> <plugin name="Item 1"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 2"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> <plugin name="Item 3"> <description> </description> <image path=""/> <files> </files> <typeDescriptor> <type name="Optional"/> </typeDescriptor> </plugin> </plugins> </group> </optionalFileGroups> </installStep> </installSteps> </config>
インストール方法
- FOModTutor03フォルダごとZIPファイルなどに圧縮してMod管理ツールでインストールします。
解説
- "SelectExactlyOne"
どれか1つを(必ず)選択します。
おそらく一番使用頻度が高いです。
- "SelectAtLeastOne"
1つ以上を選択します。
複数のフォロワーを追加するModで「インストールするフォロワーを1人以上選択させる」といった場面で使えそうです。
FOModの作り方(NMMとMOの差異について) - Thinking Skeeverにも書きましたが、MOではすべてのチェックを外せてしまいますので注意が必要です。
- "SelectAtMostOne"
選択しないか、どれか1つを選択します。
リプレーサー系のModで特定のオブジェクトに対して「リプレースなし/2k/4k」といった選択をする場面で使えそうです。
"SelectExactlyOne"でも代用できそうです。
- "SelectAll"
全て選択します。
使いどころはあまりなさそうです。"SelectAny"で全て"Required"にしても代用できますし。
- "SelectAny"
0個以上を選択します。
これも使用頻度が高そうです。
互換パッチを必要な分だけ選択してもらう、必要なければ選択しないといった場面で使えそうです。
以上