變更

增加 487 位元組 、 2024年9月11日 (星期三)
已还原搬运小丸子对话)的编辑至最后由Margotbean修订的版本
行 1: 行 1:  
 ←[[模组:目录|目录]]
 
 ←[[模组:目录|目录]]
 
{{翻译}}
 
{{翻译}}
此页面解释如何在游戏中创造和编辑农场中的[[ 动物]]
+
This page explains how to create and edit in-game [[Animals|farm animals]].
   −
== 数据格式==
+
==Data format==
你可以在文件<samp>Data/FarmAnimals</samp> 中添加或编辑农场家禽/牲畜。
+
You can add or edit farm animals by editing the <samp>Data/FarmAnimals</samp> [[Modding:Editing XNB files|asset]].
   −
  其数据是由以下字符串组成:
+
This consists of a string → model lookup, where...
=== 主要信息===
+
* The key is a [[Modding:Common data field types#Unique string ID|unique string ID]] for the farm animal type.
 +
* The value is a model with the fields listed below.
 +
 
 +
===Main info===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! 字段
+
! field
! 说明
+
! effect
 
|-
 
|-
 
| <samp>DisplayName</samp>
 
| <samp>DisplayName</samp>
| 是一个可标记字符串用来注释动物的种类
+
| A [[Modding:Tokenizable strings|tokenizable string]] for the animal type's display name.
 
|-
 
|-
 
| <samp>House</samp>
 
| <samp>House</samp>
行 20: 行 23:  
|-
 
|-
 
| <samp>Gender</samp>
 
| <samp>Gender</samp>
| ''( 可选项)'' 用于描述动物的性别
+
| ''(Optional)'' The possible genders for the animal type. Currently this only affects the text shown after purchasing the animal, like "''Great! I'll send little &lt;name&gt; to [his/her] new home right away''". Default <samp>Female</samp>.
   −
可能的数据是:
+
The possible values are:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
!
+
! value
! 说明
+
! effect
 
|-
 
|-
 
| <samp>Male</samp><br /><samp>Female</samp>
 
| <samp>Male</samp><br /><samp>Female</samp>
| 农场的动物性别固定为雄性(male)或雌性(female)
+
| Farm animals of this type are always male or always female.
 
|-
 
|-
 
| <samp>MaleOrFemale</samp>
 
| <samp>MaleOrFemale</samp>
| 动物性别随机分配
+
| The gender of each animal is randomized based on its internal unique ID.
 
|}
 
|}
 
|}
 
|}
   −
=== 动物商店===
+
===Animal shop===
 
These fields affect how this farm animal type is shown in [[Marnie's Ranch|Marnie's animal shop]]. Animals are automatically listed if they have a valid <samp>PurchasePrice</samp> value.
 
These fields affect how this farm animal type is shown in [[Marnie's Ranch|Marnie's animal shop]]. Animals are automatically listed if they have a valid <samp>PurchasePrice</samp> value.
    
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! 字段
+
! field
! 说明
+
! effect
 
|-
 
|-
 
| <samp>PurchasePrice</samp>
 
| <samp>PurchasePrice</samp>
介面管理員、patroller、結構式討論監督員管理員、translators
114,173

次編輯