Changes

Jump to navigation Jump to search
→‎Custom pets: + gifts in 1.6.0, behavior ID in 1.6.4
Line 5,042: Line 5,042:  
| <samp>PingPong</samp>
 
| <samp>PingPong</samp>
 
| ''(Optional)'' Whether to apply the 'ping pong' effect to the pet sprite animation. Default false.
 
| ''(Optional)'' Whether to apply the 'ping pong' effect to the pet sprite animation. Default false.
 +
|}
 +
|}
 +
 +
=====Gifts=====
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! effect
 +
|-
 +
| <samp>GiftChance</samp>
 +
| ''(Optional)'' The random probability each day that the pet will give the player a gift from the <samp>Gifts</samp> list when they interact with the pet. Specified as a value between 0 (never) and 1 (always). Default .2 (20% chance).
 +
|-
 +
| <samp>Gifts</samp>
 +
| ''(Optional)'' The list of gifts that this pet can give if the <samp>GiftChance</samp> is successful. Default none.
 +
 +
This consists of a list of models with these fields:
 +
 +
{| class="wikitable"
 +
|-
 +
! field
 +
! effect
 +
|-
 +
| <samp>Id</samp>
 +
| The [[Modding:Common data field types#Unique string ID|unique string ID]] for this entry within the list.
 +
|-
 +
| <samp>QualifiedItemID</samp>
 +
| The [[Modding:Common data field types#Item ID|qualified item ID]] for the gift item to create.
 +
|-
 +
| <samp>Stack</samp>
 +
| ''(Optional)'' The stack size of the gift item to produce. Default 1.
 +
|-
 +
| <samp>MinimumFriendshipThreshold</samp>
 +
| ''(Optional)'' The friendship level that this pet must be at before it can give this gift. Defaults to 1000 (max friendship).
 +
|-
 +
| <samp>Weight</samp>
 +
| ''(Optional)'' The option's weight when randomly choosing a gift, relative to other gifts in the list (e.g. <samp>2</samp> is twice as likely as <samp>1</samp>). Default 1.
 
|}
 
|}
 
|}
 
|}
Line 5,050: Line 5,086:  
! field
 
! field
 
! effect
 
! effect
 +
|-
 +
| <samp>Id</samp>
 +
| The [[Modding:Common data field types#Unique string ID|unique string ID]] for this entry within the list.
 
|-
 
|-
 
| <samp>MoveSpeed</samp>
 
| <samp>MoveSpeed</samp>
translators
8,403

edits

Navigation menu