Division modding:修订间差异

本页面所适用的版本可能已经过时,最后更新于1.5
(文本替换 - 替换“[[Category:”为“[[分类:”)
(汉化)
 
第1行: 第1行:
{{Version|1.5}}
{{Version|1.5}}
This tutorial page shows you how to make divisions and how to load them in HOI4 modding.
本教程页面向您展示了如何制作师以及如何在HOI4修改中加载师。
==How to make an oob file==
== 如何制作oob文件==
===Making Divisions===
=== 制作师===
You need the -debug executable command and the tdebug console command on for this to properly work
您需要启用-debug 可执行命令和tdebug控制台命令才能正常工作


==Using country files to create divisions==
== 使用国家/地区文件创建师==
You have to put this in to load the oob on start up, without these the country will not build an army and train divisions until it loads an oob file
你必须把这个写入国家历史文件才能在启动时加载oob,如果没有这些,这个国家在加载oob文件之前不会建立军队和训练师


For '''1936''' start-date:
1936 开局:
  
  
<pre>
<pre>
第14行: 第14行:
</pre> 
</pre> 


For '''1939''' start
1939 开局


<pre>
<pre>
第20行: 第20行:
</pre> 
</pre> 


==Using a country event file to create divisions==
== 使用国家/地区事件创建师==
If you want to load an oob via events you will [[Event modding|need to know how to mod events.]]
如果你想通过事件加载oob,你需要知道如何修改事件。首先,您必须创建一个事件文件并写入:
First, you will have to create an event file and type:
=== 创建事件===
===Creating the event===
<pre>
<pre>
add_namespace = Tutorial_events 
add_namespace = Tutorial_events 
第30行: 第29行:
</pre> 
</pre> 


This would mean the game will recognize the code as code for events, namespace can be whatever it wants to be
这意味着游戏将把代码识别为事件代码,命名空间可以是它想要的任何名称


===Use of namespace (ID, Title and Desc)===
=== 命名空间(ID、Title和Desc)的使用===
Secondly, you will have to type in the id, title and description:
其次,您必须写入id、标题和说明:


<pre>
<pre>
country_event = {
country_event = {
    id = Tutorial_events.1 
    id = Tutorial_events.1 
    title = "This is a title" ### Can be localized via the event file or by the localization file
    title = "This is a title" ### 可以通过事件文件或本地化文件进行本地化
    desc = "This is a description" 
    desc = "This is a description" 
}
}
</pre> 
</pre> 
===Triggers===
=== 触发条件===
Thirdly, you want to put in is_triggered_only = yes and fire_only_once = yes, which you can make triggers with.
第三,您想要放入<pre>'is_triggerd_only=yes</pre> 和<pre>fire_only_once=yes</pre> ,您可以使用它们来创建触发器。之后你可以输入选项!我将使用我自己的触发器示例
After that you can put in the options!
I will use my own example of a trigger
<pre>
<pre>
    id = Tutorial_events.1 
    id = Tutorial_events.1 
第59行: 第56行:
    }   
    }   
</pre> 
</pre> 
===Option===
=== 选项===
Then you put:
然后你可以放入
  
  
<pre>
<pre>

2023年11月5日 (日) 11:46的最新版本

本教程页面向您展示了如何制作师以及如何在HOI4修改中加载师。

如何制作oob文件

制作师

您需要启用-debug可执行命令和tdebug控制台命令才能正常工作

使用国家/地区文件创建师

你必须把这个写入国家历史文件才能在启动时加载oob,如果没有这些,这个国家在加载oob文件之前不会建立军队和训练师

1936开局:

oob = "TAG_1936"

1939开局:

oob = "TAG_1939"

使用国家/地区事件创建师

如果你想通过事件加载oob,你需要知道如何修改事件。首先,您必须创建一个事件文件并写入:

创建事件

add_namespace = Tutorial_events 
country_event = { 
}

这意味着游戏将把代码识别为事件代码,命名空间可以是它想要的任何名称

命名空间(ID、Title和Desc)的使用

其次,您必须写入id、标题和说明:

country_event = {
     id = Tutorial_events.1 
     title = "This is a title" ### 可以通过事件文件或本地化文件进行本地化 
     desc = "This is a description" 
}

触发条件

第三,您想要放入

'is_triggerd_only=yes

fire_only_once=yes

,您可以使用它们来创建触发器。之后你可以输入选项!我将使用我自己的触发器示例

     id = Tutorial_events.1 
     title = "This is a title" ### Can be localized via the event file or by the localization file
     desc = "This is a description"
     trigger = {
          date > 1939.1.1 
     }
     is_triggered_only = yes
     fire_only_once = yes
     option = {
          name = "This is a name"
     }    

选项

然后你可以放入

option = {
   name = "This is a name"
   load_oob = "TAG_1936" ### Can be TAG_1939 for that start date
}