Changes

Jump to navigation Jump to search
→‎Custom farm animals: expand info on the new fields
Line 2,690: Line 2,690:  
|-
 
|-
 
| <samp>EggItemIDs</samp>
 
| <samp>EggItemIDs</samp>
| ''(Optional)'' A list of the [[#Custom items| object IDs]] that can be placed in the incubator/ostrich incubator to hatch the animal (Todo : determine if the incubator also needs data to be added for this to work).
+
| ''(Optional)'' A list of the [[#Custom items|object IDs]] that can be placed in the [[incubator]] or [[Ostrich Incubator|ostrich incubator]] to hatch this animal. If the animal's <samp>House</samp> field doesn't match the current building, the entry will be ignored. Default none.
 
|-
 
|-
 
| <samp>IncubationTime</samp>
 
| <samp>IncubationTime</samp>
| ''(Optional)'' The time needed for the egg to hatch. Default : todo
+
| ''(Optional)'' How long eggs incubate before they hatch. Default 9000 minutes.
 
|-
 
|-
 
| <samp>IncubatorParentSheetOffset</samp>
 
| <samp>IncubatorParentSheetOffset</samp>
| ''(Optional)'' (Todo : sprite index of the incubator when the egg is hatching ?). Default : todo
+
| ''(Optional)'' An offset applied to the incubator's sprite index when it's holding an egg. Default 1.
 +
 
 +
The vanilla values are:
 +
{| class="wikitable"
 +
|-
 +
! offset
 +
! [[incubator]]
 +
! [[Ostrich Incubator|ostrich incubator]]
 +
|-
 +
| 0
 +
| empty incubator
 +
| empty incubator
 +
|-
 +
| 1
 +
| small white egg
 +
| large brown egg
 +
|-
 +
| 2
 +
| small brown egg
 +
| ''invalid'' (will show [[Junimo Chest|Junimo chest]] sprite)
 +
|}
 
|-
 
|-
 
| <samp>BirthText</samp>
 
| <samp>BirthText</samp>
| ''(Optional)'' A [[#Tokenizable string format|tokenizable string]] for the tooltip description shown when entering the building after the egg hatched. Default : todo
+
| ''(Optional)'' A [[#Tokenizable string format|tokenizable string]] for the message shown when entering the building after the egg hatched. Defaults to the text "<samp>???</samp>".
 
|}
 
|}
   Line 2,722: Line 2,742:  
|-
 
|-
 
| <samp>ProduceItemIDs</samp><br /><samp>DeluxeProduceItemIDs</samp>
 
| <samp>ProduceItemIDs</samp><br /><samp>DeluxeProduceItemIDs</samp>
| ''(Optional)'' A series of string conditions, minimal animal friendship numerical value, and string of the [[#Custom items|''unqualified'' object ID]] of the produced items. The list of items is first filtered via condition checking, and then one is randomly picked from the remaining, valid items. If set, the deluxe item overrides the default one if the <samp>Deluxe*</samp> fields match. Both default to none. The fields are:
+
| ''(Optional)'' The items produced by the animal when it's an adult. The <samp>DeluxeProduceItemIDs</samp> field only applies if the <samp>Deluxe*</samp> fields match. Both default to none.
 +
 
 +
This consists of a list of models with these fields:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! field
 
! field
 
! effect
 
! effect
 +
|-
 +
| <samp>ItemID</samp>
 +
| The [[#Custom items|''unqualified'' object ID]] of the item to produce.
 
|-
 
|-
 
| <samp>Condition</samp>
 
| <samp>Condition</samp>
| A [[#Game state queries|game state query]] which indicates whether the item listed can be produced.
+
| ''(Optional)'' A [[#Game state queries|game state query]] which indicates whether this item can be produced now. Defaults to always true.
 
|-
 
|-
 
| <samp>MinimumFriendship</samp>
 
| <samp>MinimumFriendship</samp>
| The minimum friendship needed for the item listed to be produced.
+
| ''(Optional)'' The minimum friendship points with the animal needed to produce this item. Default 0.
|-
  −
| <samp>ItemID</samp>
  −
| The [[#Custom items|''unqualified'' object ID]] of the item.
   
|}
 
|}
    +
If multiple entries match, one is chosen at random from both fields. (Deluxe items don't have priority if both fields have matching items.)
 
|-
 
|-
 
| <samp>DaysToProduce</samp>
 
| <samp>DaysToProduce</samp>
translators
8,447

edits

Navigation menu